-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Partials with Tailwind Styles #23
Conversation
rather than use the default styling, we need to hide the <input> and create some other elements to represented checked/not. also added default-val helper so we can use default colors or enable params that change the look and feel of the checkbox.
added `bg-checked` and updated partial so the background color of the checkbox will change if it is checked. thought about sizing params... but that would require multiple class changes (padding, width, height, etc..) so maybe make checkbox-sm partial instead
rather than use the default styling, we need to hide the <input> and create some other elements to represented checked/not. also added default-val helper so we can use default colors or enable params that change the look and feel of the checkbox.
added `bg-checked` and updated partial so the background color of the checkbox will change if it is checked. thought about sizing params... but that would require multiple class changes (padding, width, height, etc..) so maybe make checkbox-sm partial instead
f19fad2
to
2c043fd
Compare
Handlebars may not be great for this interactive user interface component use case.... From the handlebars docs: https://handlebarsjs.com/installation/when-to-use-handlebars.html
|
seems like ember uses handlebars templates: It was on the list of event based frameworks (in prev comment) and also was mentioned when researching logical helpers (eq, noteq etc..): https://github.com/jmurphyau/ember-truth-helpers |
sizing seems complicated... if we add Need to think about:
|
I was able to do this with a simple |
Description
Started messing around with simple handlebars partials and helpers.
Added (checkbox) partial with:
Also needed to add new handlebar helper for handling default values, this lets us stylize the checkbox using basic black/white unless the dev adds custom styles with
color
andbg-color
paramsRelated
#11
#12
Visual
small checkbox:
Questions
set style based on app defaults instead of making the dev specify each timesee App-wide styles #24size
property on checkbox partialTODO