Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
Wandelwerk-Software
libraries
components
Commits
b947d2df
Commit
b947d2df
authored
Sep 29, 2020
by
Bruno Burke
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting in bulma core, collapsible header title as div
parent
64c62698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
src/cljs/lernmeister/components/bulma/core.cljs
src/cljs/lernmeister/components/bulma/core.cljs
+37
-37
No files found.
src/cljs/lernmeister/components/bulma/core.cljs
View file @
b947d2df
...
...
@@ -41,11 +41,11 @@
on-change
))}))))
:reagent-render
(
fn
[{
:keys
[
field-class
input-class
input-size
label-icon
placeholder
value
on-change
label
icons
expanded?
disabled?
tooltip
autocomplete
readonly?
help
]}]
placeholder
value
on-change
label
icons
expanded?
disabled?
tooltip
autocomplete
readonly?
help
]}]
[
:<>
;;:div.field {:class field-class}
#
_
(
when
label
[
:label.label
{
:for
id
}
label
])
[
:label.label
{
:for
id
}
label
])
[
control
{
:icons
icons
:expanded?
expanded?
}
[
:<>
...
...
@@ -66,8 +66,8 @@
(
when
help
[
:div.help
help
])]
#
_
(
when
label-icon
[
icon
label-icon
:class
"is-left"
])]])})))
[
icon
label-icon
:class
"is-left"
])]])})))
(
defn
input-range
[{
:keys
[
field-class
input-class
input-size
label-icon
...
...
@@ -78,8 +78,8 @@
(
reagent/create-class
{
:reagent-render
(
fn
[{
:keys
[
field-class
input-class
input-size
label-icon
placeholder
value
on-change
label
disabled?
tooltip
autocomplete
placeholder
value
on-change
label
disabled?
tooltip
autocomplete
min
max
]}]
[
field
{
:addons?
true
}
[
control
{
:icons
icons
...
...
@@ -105,35 +105,35 @@
:id
(
str
id
"number"
)}]]
]]
#
_
[
:div.columns
[
:div.column.is-three-quarters
[
:div.field
[
:label.label
{
:for
(
str
id
"slider"
)}
label
]
[
:div.control
[
:input.input
{
:type
"range"
:value
value
:on-change
#
(
on-change
(
->
%
.-target
.-value
js/parseInt
))
:min
min
:max
max
:id
(
str
id
"slider"
)}]]]]
[
:div.column.is-one-quarter
[
:div.field
[
:label.label
{
:for
(
str
id
"number"
)
:style
{
:visibility
:hidden
}}
label
]
[
:div.control
[
:input.input
{
:type
"number"
:value
value
:min
min
:max
max
:placeholder
(
or
placeholder
""
)
:disabled
disabled
:on-change
#
(
on-change
(
->
%
.-target
.-value
js/parseInt
))
:id
(
str
id
"number"
)}]]]]])})))
[
:div.column.is-three-quarters
[
:div.field
[
:label.label
{
:for
(
str
id
"slider"
)}
label
]
[
:div.control
[
:input.input
{
:type
"range"
:value
value
:on-change
#
(
on-change
(
->
%
.-target
.-value
js/parseInt
))
:min
min
:max
max
:id
(
str
id
"slider"
)}]]]]
[
:div.column.is-one-quarter
[
:div.field
[
:label.label
{
:for
(
str
id
"number"
)
:style
{
:visibility
:hidden
}}
label
]
[
:div.control
[
:input.input
{
:type
"number"
:value
value
:min
min
:max
max
:placeholder
(
or
placeholder
""
)
:disabled
disabled
:on-change
#
(
on-change
(
->
%
.-target
.-value
js/parseInt
))
:id
(
str
id
"number"
)}]]]]])})))
(
defn
checkbox
[{
:keys
[
name
disabled?
on-change
checked?
label
]}]
...
...
@@ -192,7 +192,7 @@
[
:header.card-header
{
:on-click
#
(
swap!
collapsible-state
update
index
not
)
:style
{
:cursor
:pointer
}}
[
:
p
.card-header-title
[
:
div
.card-header-title
(
:label
element
)
;;;TODO icon --[:i.material-icons (:icon element)]
]
...
...
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