Skip to content

Commit

Permalink
showcase buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jul 5, 2024
1 parent bd48d63 commit b266d6d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
1 change: 1 addition & 0 deletions src/component/control/slider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export const Control_slider = function({

const formInline = form.inline({
block: true,
align: 'center',
gap: 'small',
children: [
this.range,
Expand Down
1 change: 1 addition & 0 deletions src/component/control/sliderSlim/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export const Control_sliderSlim = function({

const formInline = form.inline({
block: true,
align: 'center',
gap: 'small',
children: [
this.label,
Expand Down
32 changes: 12 additions & 20 deletions src/component/showcase/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ showcase.disable = () => {
showcase.control.button.d.disable();
showcase.control.button.e.disable();
showcase.control.button.f.disable();
showcase.control.button.g.disable();
showcase.control.button.dropdown.disable();
showcase.control.tab.disable();
showcase.control.input.text.disable();
Expand Down Expand Up @@ -136,6 +137,7 @@ showcase.disable = () => {
showcase.control.button.d.enable();
showcase.control.button.e.enable();
showcase.control.button.f.enable();
showcase.control.button.g.enable();
showcase.control.button.dropdown.enable();
showcase.control.tab.enable();
showcase.control.input.text.enable();
Expand Down Expand Up @@ -549,10 +551,11 @@ showcase.area.assemble = () => {
d: new Button({ text: 'Button small', style: ['line'], size: 'small' }),
e: new Button({ text: 'Button medium', style: ['line'] }),
f: new Button({ text: 'Button large', style: ['line'], size: 'large' }),
g: new Button({ text: 'Add new stuff', style: ['line'], iconName: 'add', srOnly: true }),
dropdown: new Dropdown({
text: 'Dropdown',
buttonStyle: ['line'],
iconName: 'add',
iconName: 'arrowKeyboardDown',
persist: true,
menuItem: [
{ text: 'One', iconName: 'addGroup' },
Expand Down Expand Up @@ -656,30 +659,24 @@ showcase.area.assemble = () => {
form.wrap({
children: [
form.inline({
align: 'top',
wrap: true,
gap: 'small',
align: 'center',
children: [
showcase.control.input.radio.b.inputButton(),
showcase.control.input.radio.c.inputButton(),
]
})
]
}),
form.wrap({
children: [
form.inline({
align: 'top',
children: [
showcase.control.input.checkbox.d.inputButton(),
showcase.control.input.checkbox.e.inputButton(),
]
}),
})
]
}),
node('hr'),
form.wrap({
children: [
form.inline({
align: 'center',
gap: 'small',
children: [
showcase.control.input.radio.grid3x3.wrap(),
showcase.control.input.radio.grid1x3.wrap(),
Expand All @@ -692,24 +689,19 @@ showcase.area.assemble = () => {
form.wrap({
children: [
form.inline({
wrap: true,
gap: 'small',
align: 'center',
children: [
showcase.control.button.a.wrap(),
showcase.control.button.b.wrap(),
showcase.control.button.c.wrap(),
showcase.control.button.d.wrap(),
showcase.control.button.e.wrap(),
showcase.control.button.f.wrap(),
showcase.control.button.g.wrap(),
showcase.control.button.dropdown.toggle,
]
})
]
}),
form.wrap({
children: [
showcase.control.button.dropdown.toggle
]
}),
node('hr'),
showcase.control.tab.tab(),
showcase.control.input.text.wrap(),
Expand Down

0 comments on commit b266d6d

Please sign in to comment.