Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="lui-checkbox " data-controller="checkbox">
<label class="lui-checkbox__wrapper">
<span class="lui-checkbox__input">
<input type="checkbox"
data-checkbox-target="input"
data-action="change->checkbox#toggle"
class="lui-checkbox__original"
>
<span class="lui-checkbox__inner"></span>
</span>
<span class="lui-checkbox__label">Checkbox Label
<button class="lui-button lui-button--app--primary lui-button--size-small ml-2" data-controller="lui--button" data-action="click->checkbox#setIndeterminate">
<span class="lui-button__text" data-lui--button-target="text">
Set Indeterminate
</span>
</button>
</span>
</label>
</div>
<div class="lui-checkbox " data-controller="checkbox">
<label class="lui-checkbox__wrapper">
<span class="lui-checkbox__input">
<input type="checkbox"
data-checkbox-target="input"
data-action="change->checkbox#toggle"
class="lui-checkbox__original"
>
<span class="lui-checkbox__inner"></span>
</span>
<span class="lui-checkbox__label">Checkbox Label</span>
</label>
</div>
1
2
3
4
5
6
7
<%# Checkbox normal with content contolling indeterminate state with js%>
<%= render LooposUi::Inputs::Checkbox.new(label: "Checkbox Label") do %>
<%= render LooposUi::Button.new(text: "Set Indeterminate", size: :small, tag_options: {class: "lui-button lui-button--app--primary lui-button--size-small ml-2",data: {action: "click->checkbox#setIndeterminate"}}) %>
<% end %>
<%# Checkbox normal with state controll by params%>
<%= render LooposUi::Inputs::Checkbox.new(label: "Checkbox Label", state: params[:state]&.to_sym)%>
Param Description Input