Comments (3)
Hi, this is way too "tangled up" for the main release.
It if works for you, just use it, but, I'm sorry, won't edit the project code.
Many thanks for the contribution in any case!
from lc-switch.
from lc-switch.
Just to let you know i updated my solution.
Changed
wrapper.innerHTML =
'<div class="lcs_switch '+ classes +'" '+ custom_on_col_attr +' '+ custom_style +'>' +
'<div class="lcs_cursor"></div>' +
on_label + off_label +
'</div>';
with
let wrapper_innerH =
'<div class="lcs_switch ' + classes + '" ' + custom_on_col_attr + ' ' + custom_style + '>' +
'<div class="lcs_cursor"></div>' +
on_label + off_label +
'</div>';
let tags = new DOMParser().parseFromString(wrapper_innerH, 'text/html').getElementsByTagName('div');
for (const tag of tags) {
wrapper.appendChild(tag);
}
from lc-switch.
Related Issues (15)
- classes on input element is removed on initialising HOT 3
- onclick event HOT 1
- jQuery Ui HOT 4
- Method to enable or disable switch HOT 1
- function lcs_toggle() doesn't exist HOT 1
- label with "for" attribute toggles the radio / checkbox but the switches do not change HOT 1
- Feature Request: make events bubbling or dispatch a bubbling change event on toggle HOT 4
- Public Event Listener for input type checkbox that is unchecked
- Is it possible to theme only one checkbox on a page ? HOT 1
- Typo on the homepage HOT 1
- Resizing the switch HOT 2
- jQuery's delegated becomes deprecated... HOT 3
- Method to toggle state HOT 1
- Addon-reviewers security risk HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lc-switch.