Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
69a09663
Commit
69a09663
authored
May 29, 2026
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Components fix createCheckbox
parent
1e53fdfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
constructor/scripts/Components.js
constructor/scripts/Components.js
+3
-5
No files found.
constructor/scripts/Components.js
View file @
69a09663
...
@@ -62,13 +62,11 @@ const createInputNumber = (label, placeholder = '') => {
...
@@ -62,13 +62,11 @@ const createInputNumber = (label, placeholder = '') => {
return
{
container
,
input
};
return
{
container
,
input
};
}
}
const
createCheckbox
=
(
label
,
placeholder
=
''
)
=>
{
const
createCheckbox
=
(
label
)
=>
{
const
id
=
UTILS
.
generateGuid
(
'
comp
'
);
const
id
=
UTILS
.
generateGuid
(
'
comp
'
);
const
container
=
$
(
'
<div>
'
,
{
class
:
'
uk-margin-small
'
});
const
container
=
$
(
'
<div>
'
,
{
class
:
'
uk-margin-small
'
});
const
fc
=
$
(
'
<div>
'
,
{
class
:
'
uk-form-controls
'
});
const
input
=
$
(
`<input type="checkbox" id="
${
id
}
" class="uk-checkbox">`
);
const
input
=
$
(
`<input type="checkbox" id="
${
id
}
" class="uk-checkbox" placeholder="
${
placeholder
}
">`
);
container
.
append
(
$
(
`<label class="uk-form-label" for="
${
id
}
"></label>`
).
append
(
input
,
`
${
label
}
`
));
fc
.
append
(
input
);
container
.
append
(
`<label class="uk-form-label uk-text-bold" for="
${
id
}
">
${
label
}
</label>`
).
append
(
fc
);
return
{
container
,
input
};
return
{
container
,
input
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment