Angular JS/CSS guru to create code for a button in HTML app
$10-30 AUD
Dokončeno
Zveřejněno přibližně před 5 roky
$10-30 AUD
Zaplaceno při doručení
Hi All
I have created a button, but it is not state sensitive. Im trying to create a single button to unlock a door, the button reads the state of the item (LOCKED or UNLOCKED), when its LOCKED, it should display the option only to UNLOCK. When UNLOCKED, it should display the option only to LOCK.
I need the small amount of code to do this.
Here is visually how the button works. This sample has two buttons, one for Calling and one for hanging up, it would be nice to merge into one.
This is for use in OpenHAB. itemValue is a SWITCH which always has a state. It's the checking of the state that should change the content of the switch
My code:
<div class="widget">
<div class="icon" ng-class="{true:'on', false:'off'}[itemValue('DoorBird_SIP')=='ON']"><svg viewBox="0 0 48 48"><use xlink:href="/static/matrix-theme/squidink.svg#microphone"></use></svg></div>
<div class="name">Intercom</div>
<div class="sceneGroup">
<div class="scene" ng-class="{true:'on', false:'off'}[itemValue('DoorBird_SIP')=='ON']" ng-click="sendCmd('DoorBird_SIP', 'ON')">Back Call</div>
<div class="scene" ng-class="{true:'on', false:'off'}[itemValue('DoorBird_SIP')=='OFF']" ng-click="sendCmd('DoorBird_SIP', 'OFF')">Hang Up</div>
</div>
</div>
Hi,
I am a software engineer and i have 3+ year of experience in software development.
I have good experience with angular.js, CSS and HTML.
I would like to work with you this task.
Happy to hear from you anytime.
Thanks.
$15 AUD v 1 dni
5,0 (1 recenze)
0,0
0,0
6 freelanceři nabízejí v průměru $23 AUD za tuto práci
Hello
I am a full stack developer for over 5 years on the freelancer.com.
I have read your description in more detail and have much interest in your project.
I have many experiences what I have ever done before similar to your project.
I think that I can finish your work perfectly as you need.
If you need to discuss with me for any kind of suggestions or information, please knock me anytime.
I am looking forward to hearing from you very soon.
Thank you.
Hi,
ng-class and ng-style will check the condition when component loads so it will not change when you change the state. I can solve this issue please share GitHub path and I can start the work.
thanks
Abhinav
Hey there !
I have learned about your need for an Angular developer and I am more than interested in this job, and believe that my education and employment background are appropriate for it.
I'm currently workingfor multinational company specializing in the integration of java / java ee / spring / angular and ecommerce solutions (SQLI Group).
Over two years , i have been working o projects for prestigious clients in different fields (luxury, Construction, aviation, sport...) helping them to offer a better experience for their clients.
I know you’re probably curious to see my work. Please have a look at my Upwork portfolio .
I am available for an interview. I look forward to having the opportunity to discuss the job further.
Have a great day!