Skip to content
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

Inline mode with setInstance #67

Closed
AntonLitvin opened this issue Dec 1, 2022 · 4 comments
Closed

Inline mode with setInstance #67

AntonLitvin opened this issue Dec 1, 2022 · 4 comments

Comments

@AntonLitvin
Copy link

Hi!
I tried to set inline mode through setInstance, but it still popup.
maybe i do something wrong?

<div class="form-input color-picker color-picker-inline ">
  <label for="cp2">Choose color</label>
  <input id="cp2" type="text" class="instance1" data-coloris>
</div>

Coloris.setInstance('.instance1', {
  parent: '.color-picker-inline',
  theme: 'polaroid',
  inline: true
});
@mdbassit
Copy link
Owner

mdbassit commented Dec 1, 2022

Instances are not supported in inline mode, and similarly, you can not set inline mode using instances. If you need an inline color picker, use the main configuration method.

@AntonLitvin
Copy link
Author

AntonLitvin commented Dec 1, 2022

two items: inline (set default) and not inline (set through instance) does not work togeather((
And no way to set multiply inline color-pickers?

@mdbassit
Copy link
Owner

mdbassit commented Dec 2, 2022

There is no way to have multiple inline color pickers.

@AntonLitvin
Copy link
Author

Thanks, have a good day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants