Skip to content

Commit 6d6a61e

Browse files
authored
Merge pull request #10 from alexrudy:customize-tag-attrs
Adds the abilitly to manage tag attributes and classes for semantic items which generate HTML.
2 parents 5f96437 + 9c4af89 commit 6d6a61e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+507
-100
lines changed

docs/api/bootlace.icon.Icon.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ Icon
1212

1313
~Icon.endpoint
1414
~Icon.filename
15-
~Icon.height
1615
~Icon.name
16+
~Icon.svg
1717
~Icon.url
18-
~Icon.width
18+
~Icon.use
1919

2020
.. rubric:: Methods Summary
2121

@@ -27,10 +27,10 @@ Icon
2727

2828
.. autoattribute:: endpoint
2929
.. autoattribute:: filename
30-
.. autoattribute:: height
3130
.. autoattribute:: name
31+
.. autoattribute:: svg
3232
.. autoattribute:: url
33-
.. autoattribute:: width
33+
.. autoattribute:: use
3434

3535
.. rubric:: Methods Documentation
3636

docs/api/bootlace.links.Link.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Link
1010

1111
.. autosummary::
1212

13+
~Link.a
1314
~Link.active
1415
~Link.enabled
1516
~Link.text
@@ -23,6 +24,7 @@ Link
2324

2425
.. rubric:: Attributes Documentation
2526

27+
.. autoattribute:: a
2628
.. autoattribute:: active
2729
.. autoattribute:: enabled
2830
.. autoattribute:: text

docs/api/bootlace.links.View.rst

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ View
1010

1111
.. autosummary::
1212

13+
~View.a
1314
~View.active
1415
~View.enabled
1516
~View.endpoint
@@ -26,6 +27,7 @@ View
2627

2728
.. rubric:: Attributes Documentation
2829

30+
.. autoattribute:: a
2931
.. autoattribute:: active
3032
.. autoattribute:: enabled
3133
.. autoattribute:: endpoint

docs/api/bootlace.nav.elements.Brand.rst

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Brand
1010

1111
.. autosummary::
1212

13+
~Brand.a
1314
~Brand.active
1415
~Brand.enabled
1516
~Brand.id
@@ -21,12 +22,15 @@ Brand
2122
.. autosummary::
2223

2324
~Brand.__tag__
25+
~Brand.deserialize
2426
~Brand.element_state
27+
~Brand.serialize
2528
~Brand.with_url
2629
~Brand.with_view
2730

2831
.. rubric:: Attributes Documentation
2932

33+
.. autoattribute:: a
3034
.. autoattribute:: active
3135
.. autoattribute:: enabled
3236
.. autoattribute:: id
@@ -36,6 +40,8 @@ Brand
3640
.. rubric:: Methods Documentation
3741

3842
.. automethod:: __tag__
43+
.. automethod:: deserialize
3944
.. automethod:: element_state
45+
.. automethod:: serialize
4046
.. automethod:: with_url
4147
.. automethod:: with_view

docs/api/bootlace.nav.elements.Dropdown.rst

+12
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,39 @@ Dropdown
1111
.. autosummary::
1212

1313
~Dropdown.active
14+
~Dropdown.dropdown
1415
~Dropdown.enabled
1516
~Dropdown.id
1617
~Dropdown.items
18+
~Dropdown.li
1719
~Dropdown.title
20+
~Dropdown.toggle
21+
~Dropdown.ul
1822

1923
.. rubric:: Methods Summary
2024

2125
.. autosummary::
2226

2327
~Dropdown.__tag__
28+
~Dropdown.deserialize
2429
~Dropdown.element_state
30+
~Dropdown.serialize
2531

2632
.. rubric:: Attributes Documentation
2733

2834
.. autoattribute:: active
35+
.. autoattribute:: dropdown
2936
.. autoattribute:: enabled
3037
.. autoattribute:: id
3138
.. autoattribute:: items
39+
.. autoattribute:: li
3240
.. autoattribute:: title
41+
.. autoattribute:: toggle
42+
.. autoattribute:: ul
3343

3444
.. rubric:: Methods Documentation
3545

3646
.. automethod:: __tag__
47+
.. automethod:: deserialize
3748
.. automethod:: element_state
49+
.. automethod:: serialize

docs/api/bootlace.nav.elements.Link.rst

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Link
1010

1111
.. autosummary::
1212

13+
~Link.a
1314
~Link.active
1415
~Link.enabled
1516
~Link.id
@@ -21,12 +22,15 @@ Link
2122
.. autosummary::
2223

2324
~Link.__tag__
25+
~Link.deserialize
2426
~Link.element_state
27+
~Link.serialize
2528
~Link.with_url
2629
~Link.with_view
2730

2831
.. rubric:: Attributes Documentation
2932

33+
.. autoattribute:: a
3034
.. autoattribute:: active
3135
.. autoattribute:: enabled
3236
.. autoattribute:: id
@@ -36,6 +40,8 @@ Link
3640
.. rubric:: Methods Documentation
3741

3842
.. automethod:: __tag__
43+
.. automethod:: deserialize
3944
.. automethod:: element_state
45+
.. automethod:: serialize
4046
.. automethod:: with_url
4147
.. automethod:: with_view

docs/api/bootlace.nav.elements.Nav.rst

+8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ Nav
1515
~Nav.enabled
1616
~Nav.id
1717
~Nav.items
18+
~Nav.li
1819
~Nav.style
20+
~Nav.ul
1921

2022
.. rubric:: Methods Summary
2123

2224
.. autosummary::
2325

2426
~Nav.__tag__
27+
~Nav.deserialize
2528
~Nav.element_state
29+
~Nav.serialize
2630

2731
.. rubric:: Attributes Documentation
2832

@@ -31,9 +35,13 @@ Nav
3135
.. autoattribute:: enabled
3236
.. autoattribute:: id
3337
.. autoattribute:: items
38+
.. autoattribute:: li
3439
.. autoattribute:: style
40+
.. autoattribute:: ul
3541

3642
.. rubric:: Methods Documentation
3743

3844
.. automethod:: __tag__
45+
.. automethod:: deserialize
3946
.. automethod:: element_state
47+
.. automethod:: serialize

docs/api/bootlace.nav.elements.NavBar.rst

+8
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,38 @@ NavBar
1212

1313
~NavBar.active
1414
~NavBar.color
15+
~NavBar.container
1516
~NavBar.enabled
1617
~NavBar.expand
1718
~NavBar.fluid
1819
~NavBar.id
1920
~NavBar.items
21+
~NavBar.nav
2022

2123
.. rubric:: Methods Summary
2224

2325
.. autosummary::
2426

2527
~NavBar.__tag__
28+
~NavBar.deserialize
2629
~NavBar.element_state
30+
~NavBar.serialize
2731

2832
.. rubric:: Attributes Documentation
2933

3034
.. autoattribute:: active
3135
.. autoattribute:: color
36+
.. autoattribute:: container
3237
.. autoattribute:: enabled
3338
.. autoattribute:: expand
3439
.. autoattribute:: fluid
3540
.. autoattribute:: id
3641
.. autoattribute:: items
42+
.. autoattribute:: nav
3743

3844
.. rubric:: Methods Documentation
3945

4046
.. automethod:: __tag__
47+
.. automethod:: deserialize
4148
.. automethod:: element_state
49+
.. automethod:: serialize

docs/api/bootlace.nav.elements.NavBarCollapse.rst

+10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ NavBarCollapse
1111
.. autosummary::
1212

1313
~NavBarCollapse.active
14+
~NavBarCollapse.button
15+
~NavBarCollapse.container
1416
~NavBarCollapse.enabled
17+
~NavBarCollapse.icon
1518
~NavBarCollapse.id
1619
~NavBarCollapse.items
1720

@@ -20,16 +23,23 @@ NavBarCollapse
2023
.. autosummary::
2124

2225
~NavBarCollapse.__tag__
26+
~NavBarCollapse.deserialize
2327
~NavBarCollapse.element_state
28+
~NavBarCollapse.serialize
2429

2530
.. rubric:: Attributes Documentation
2631

2732
.. autoattribute:: active
33+
.. autoattribute:: button
34+
.. autoattribute:: container
2835
.. autoattribute:: enabled
36+
.. autoattribute:: icon
2937
.. autoattribute:: id
3038
.. autoattribute:: items
3139

3240
.. rubric:: Methods Documentation
3341

3442
.. automethod:: __tag__
43+
.. automethod:: deserialize
3544
.. automethod:: element_state
45+
.. automethod:: serialize

docs/api/bootlace.nav.elements.NavBarNav.rst

+8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ NavBarNav
1515
~NavBarNav.enabled
1616
~NavBarNav.id
1717
~NavBarNav.items
18+
~NavBarNav.li
1819
~NavBarNav.style
20+
~NavBarNav.ul
1921

2022
.. rubric:: Methods Summary
2123

2224
.. autosummary::
2325

2426
~NavBarNav.__tag__
27+
~NavBarNav.deserialize
2528
~NavBarNav.element_state
29+
~NavBarNav.serialize
2630

2731
.. rubric:: Attributes Documentation
2832

@@ -31,9 +35,13 @@ NavBarNav
3135
.. autoattribute:: enabled
3236
.. autoattribute:: id
3337
.. autoattribute:: items
38+
.. autoattribute:: li
3439
.. autoattribute:: style
40+
.. autoattribute:: ul
3541

3642
.. rubric:: Methods Documentation
3743

3844
.. automethod:: __tag__
45+
.. automethod:: deserialize
3946
.. automethod:: element_state
47+
.. automethod:: serialize

docs/api/bootlace.nav.elements.NavBarSearch.rst

+10
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ NavBarSearch
1313
~NavBarSearch.action
1414
~NavBarSearch.active
1515
~NavBarSearch.button
16+
~NavBarSearch.button_tag
1617
~NavBarSearch.enabled
18+
~NavBarSearch.form
1719
~NavBarSearch.id
20+
~NavBarSearch.input
1821
~NavBarSearch.method
1922
~NavBarSearch.placeholder
2023

@@ -23,19 +26,26 @@ NavBarSearch
2326
.. autosummary::
2427

2528
~NavBarSearch.__tag__
29+
~NavBarSearch.deserialize
2630
~NavBarSearch.element_state
31+
~NavBarSearch.serialize
2732

2833
.. rubric:: Attributes Documentation
2934

3035
.. autoattribute:: action
3136
.. autoattribute:: active
3237
.. autoattribute:: button
38+
.. autoattribute:: button_tag
3339
.. autoattribute:: enabled
40+
.. autoattribute:: form
3441
.. autoattribute:: id
42+
.. autoattribute:: input
3543
.. autoattribute:: method
3644
.. autoattribute:: placeholder
3745

3846
.. rubric:: Methods Documentation
3947

4048
.. automethod:: __tag__
49+
.. automethod:: deserialize
4150
.. automethod:: element_state
51+
.. automethod:: serialize

docs/api/bootlace.nav.elements.Separator.rst

+6
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,26 @@ Separator
1212

1313
~Separator.active
1414
~Separator.enabled
15+
~Separator.hr
1516

1617
.. rubric:: Methods Summary
1718

1819
.. autosummary::
1920

2021
~Separator.__tag__
22+
~Separator.deserialize
2123
~Separator.element_state
24+
~Separator.serialize
2225

2326
.. rubric:: Attributes Documentation
2427

2528
.. autoattribute:: active
2629
.. autoattribute:: enabled
30+
.. autoattribute:: hr
2731

2832
.. rubric:: Methods Documentation
2933

3034
.. automethod:: __tag__
35+
.. automethod:: deserialize
3136
.. automethod:: element_state
37+
.. automethod:: serialize

docs/api/bootlace.nav.elements.Text.rst

+6
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,28 @@ Text
1212

1313
~Text.active
1414
~Text.enabled
15+
~Text.span
1516
~Text.text
1617

1718
.. rubric:: Methods Summary
1819

1920
.. autosummary::
2021

2122
~Text.__tag__
23+
~Text.deserialize
2224
~Text.element_state
25+
~Text.serialize
2326

2427
.. rubric:: Attributes Documentation
2528

2629
.. autoattribute:: active
2730
.. autoattribute:: enabled
31+
.. autoattribute:: span
2832
.. autoattribute:: text
2933

3034
.. rubric:: Methods Documentation
3135

3236
.. automethod:: __tag__
37+
.. automethod:: deserialize
3338
.. automethod:: element_state
39+
.. automethod:: serialize

0 commit comments

Comments
 (0)