Did something change to the color helper?
PermalinkWhen I have a theme that "provides" jquery (providesAsset()), it doesn't work.
When I have a theme that "requires" it, then it works.
Same jQ version.
public function registerAssets() { $this->requireAsset('css', 'font-awesome'); $this->providesAsset('javascript', 'jquery'); }
but it seems when I provide the jquery asset, the color picker doesn't work.
Am I missing something?
<head> <? Loader::element('header_required'); ?> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" ></script> <?php echo $html->css($view->getStylesheet('iGotStyle.less'))?> </head>
should I throw it before header_required?
$color = Core::make('helper/form/color'); $color->output('bgcolor',$bgcolor);
On the topic of the color helper:
- is there a way to enable the rgba version (with transparency slider) that the theme preset system uses?
- is there a recommended way to set a default color for the color picker instead of transparent with an X?
I am very excited about your documentation for attributes. I am working on a pretty neat free theme that uses colors and being able to use a color picker in composer would be perfect.
I set the default color by doing this though
$color->output('bgcolor',$bgcolor?$bgcolor:"rgb(255,0,0)")?>
I didn't even know you could do that.
Have you tried using the color picker with the transparency slider yet?
$color->output('bgcolor',$bgcolor,array('showAlpha'=>'true');
You can see all of the options available here:http://bgrins.github.io/spectrum/#options...
and you can see what the default selected options are here in /concrete/src/Form/Widget/Color.php
Thank you.
I'm simply doing this:
and getting "Undefined is not a function" error in my console.
This is strictly as of 5.7.2.1