Skip to content

Commit 6830bdd

Browse files
committed
More button styler doc refinements
1 parent bdd9980 commit 6830bdd

File tree

1 file changed

+23
-63
lines changed

1 file changed

+23
-63
lines changed

docs/modules/ROOT/pages/elements/button_stylers.adoc

+23-63
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ button(label
362362
)
363363
----
364364
a|
365-
* Creates a button with the specified label, with optional size, and color.
365+
* Creates a button with label, and optional size, and color.
366366

367367
a|
368368
[source,c++]
@@ -373,15 +373,8 @@ button<MBase>(
373373
)
374374
----
375375
a|
376-
* Creates a button with the specified label,, with optional size, and color,
376+
* Creates a button with label, and optional size, and color,
377377
using the MBase template.
378-
|===
379-
380-
==== Momentary Buttons with Icon to the Left
381-
382-
[cols="2,3", options="header"]
383-
|===
384-
| Expression | Semantics
385378

386379
a|
387380
[source,c++]
@@ -392,7 +385,7 @@ button(
392385
)
393386
----
394387
a|
395-
* Creates a momentary button with the specified icon to the left, label,
388+
* Creates a momentary button with icon to the left, label,
396389
size, and optional color.
397390

398391
a|
@@ -404,15 +397,8 @@ button<MBase>(
404397
)
405398
----
406399
a|
407-
* Creates a momentary button with the specified icon to the left, label,
400+
* Creates a momentary button with icon to the left, label,
408401
size, and optional color, using the MBase template.
409-
|===
410-
411-
==== Momentary Buttons with Icon to the Right
412-
413-
[cols="2,3", options="header"]
414-
|===
415-
| Expression | Semantics
416402

417403
a|
418404
[source,c++]
@@ -423,7 +409,8 @@ button(
423409
)
424410
----
425411
a|
426-
* Creates a momentary button with the specified label, icon to the right, size, and optional color.
412+
* Creates a momentary button with label, icon to the right, size, and
413+
optional color.
427414

428415
a|
429416
[source,c++]
@@ -434,7 +421,8 @@ button<MBase>(
434421
)
435422
----
436423
a|
437-
* Creates a momentary button with the specified label, icon to the right, size, and optional color, using the MBase template.
424+
* Creates a momentary button with label, icon to the right, size, and
425+
optional color, using the MBase template.
438426
|===
439427

440428
==== Toggle Buttons
@@ -452,7 +440,7 @@ toggle_button(
452440
)
453441
----
454442
a|
455-
* Creates a toggle button with the specified label, with optional size, and
443+
* Creates a toggle button with label, and optional size, and
456444
color.
457445

458446
a|
@@ -464,15 +452,8 @@ toggle_button<TBase>(
464452
)
465453
----
466454
a|
467-
* Creates a toggle button with the specified label, with optional size, and
455+
* Creates a toggle button with label, and optional size, and
468456
color, using the TBase template.
469-
|===
470-
471-
==== Toggle Buttons with Icon to the Left
472-
473-
[cols="2,3", options="header"]
474-
|===
475-
| Expression | Semantics
476457

477458
a|
478459
[source,c++]
@@ -483,7 +464,7 @@ toggle_button(
483464
)
484465
----
485466
a|
486-
* Creates a toggle button with the specified icon to the left, label, size,
467+
* Creates a toggle button with icon to the left, label, size,
487468
and optional color.
488469

489470
a|
@@ -495,15 +476,8 @@ toggle_button<TBase>(
495476
)
496477
----
497478
a|
498-
* Creates a toggle button with the specified icon to the left, label, size,
479+
* Creates a toggle button with icon to the left, label, size,
499480
and optional color, using the TBase template.
500-
|===
501-
502-
==== Toggle Buttons with Icon to the Right
503-
504-
[cols="2,3", options="header"]
505-
|===
506-
| Expression | Semantics
507481

508482
a|
509483
[source,c++]
@@ -514,7 +488,7 @@ toggle_button(
514488
)
515489
----
516490
a|
517-
* Creates a toggle button with the specified label, icon to the right, size,
491+
* Creates a toggle button with label, icon to the right, size,
518492
and optional color.
519493

520494
a|
@@ -526,7 +500,7 @@ toggle_button<TBase>(
526500
)
527501
----
528502
a|
529-
* Creates a toggle button with the specified label, icon to the right, size,
503+
* Creates a toggle button with label, icon to the right, size,
530504
and optional color, using the TBase template.
531505
|===
532506

@@ -545,7 +519,7 @@ latching_button(
545519
)
546520
----
547521
a|
548-
* Creates a latching button with the specified label, with optional size, and
522+
* Creates a latching button with label, and optional size, and
549523
color.
550524

551525
a|
@@ -557,15 +531,8 @@ latching_button<LBase>(
557531
)
558532
----
559533
a|
560-
* Creates a latching button with the specified label, with optional size, and
534+
* Creates a latching button with label, and optional size, and
561535
color, using the LBase template.
562-
|===
563-
564-
==== Latching Buttons with Icon to the Left
565-
566-
[cols="2,3", options="header"]
567-
|===
568-
| Expression | Semantics
569536

570537
a|
571538
[source,c++]
@@ -576,7 +543,7 @@ latching_button(
576543
)
577544
----
578545
a|
579-
* Creates a latching button with the specified icon to the left, label, size,
546+
* Creates a latching button with icon to the left, label, size,
580547
and optional color.
581548

582549
a|
@@ -588,15 +555,8 @@ latching_button<LBase>(
588555
)
589556
----
590557
a|
591-
* Creates a latching button with the specified icon to the left, label, size,
558+
* Creates a latching button with icon to the left, label, size,
592559
and optional color, using the LBase template.
593-
|===
594-
595-
==== Latching Buttons with Icon to the Right
596-
597-
[cols="2,3", options="header"]
598-
|===
599-
| Expression | Semantics
600560

601561
a|
602562
[source,c++]
@@ -607,7 +567,7 @@ latching_button(
607567
)
608568
----
609569
a|
610-
* Creates a latching button with the specified label, icon to the right,
570+
* Creates a latching button with label, icon to the right,
611571
size, and optional color.
612572

613573
a|
@@ -619,13 +579,13 @@ latching_button<LBase>(
619579
)
620580
----
621581
a|
622-
* Creates a latching button with the specified label, icon to the right,
582+
* Creates a latching button with label, icon to the right,
623583
size, and optional color, using the LBase template.
624584
|===
625585

626-
These are forwarding shortcuts to the `button_styler` expressions. They
627-
create a button styler with the specified properties and pass it to the
628-
corresponding button creation function.
586+
These are overloaded forwarding functions that create a button styler with
587+
specified properties and pass it to the corresponding button creation
588+
function.
629589

630590
Example:
631591

0 commit comments

Comments
 (0)