ember-toggle not work && dont show
sunflower-tc opened this issue · 10 comments
Hello, I have a question to ask you. I added the configuration as you requested, ember, install, ember-toggle, and config/environment, but it didn't work. Please help, thank you.
{{x-toggle value=toggled theme='ios' onToggle=(action (bsSwitchChanged toggled))}}
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
ENV.APP.LOG_ACTIVE_GENERATION = true;
ENV.APP.LOG_TRANSITIONS = true;
ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.locationType = 'hash';
ENV['ember-cli-toggle'] = {
includedThemes: ['light', 'default', 'flip','ios'],
excludedThemes: ['flip'],
excludeBaseStyles: false, // defaults to false
defaultShowLabels: true, // defaults to false
defaultTheme: 'light', // defaults to 'default'
defaultSize: 'small', // defaults to 'medium'
defaultOffLabel: 'False', // defaults to 'Off'
defaultOnLabel: 'True' // defaults to 'On'
}
}
`
It's my code. I don't know what's wrong with it. Please give me your advice
Configuration should be called ENV['ember-toggle']
without the cli
.
Thank you for your prompt recovery. I tried it, but it still doesn't work.
@sunflower-tc can you try without the config? You only need one to exclude themes, I believe.
I would also try contextual components version.
Correct, if includedThemes
aren't defined, all are imported. Are there any errors in the devtools console?
Hello, I have seen from the Google debugger, the components I used in the project, like missing a lot of things, such as CSS, js. I don't know what's going on here. Please give me some advice. Thank you very much.
Can you push your code to github to see?
@sunflower-tc it would be helpful to know exactly what you mean. It sounds like your project is misconfigured in general, if it is missing other things. Could you please create a reproduction for us to look at?
@sunflower-tc do you have an example of code for us to look at?
Closing since there is no response. Will reopen if there is a response.