Skip to content

Commit

Permalink
TheCoder4eu/BootsFaces-OSP#979 added the attribute badge-span
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanrauh committed Jul 24, 2018
1 parent c9f8810 commit d3c6149
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/webapp/bootstrap/Slider2.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@
<h:form>
<b:panelGrid columns="2" size="sm">
<h:panelGroup display="block">
<div class="container">
<b:slider2 orientation="horizontal" value="#{sliderBean.age}" label="Enter your age (18-65)"
mode="edit" id="age" />
mode="edit" id="age"
badge-span="2"
badge-style="width: 2.7em;padding-right:5px;padding-left:5px"/>
<b:message for="age" />
<b:commandButton update="@form" value="Validate constraints" />
</div>
</h:panelGroup>
<h:panelGroup display="block">
<b:switch value="#{messageStyleBean.useLegacyBootsFacesStyle}"
Expand All @@ -532,12 +532,12 @@
class="brush: xml; toolbar: false;gutter: false; first-line: 1">
<![CDATA[
<h:form>
<div class="container">
<b:slider2 orientation="horizontal" value="#{sliderBean.age}" label="Enter your age (18-65)"
mode="edit" id="age" />
<b:message for="age" />
<b:commandButton update="@form" value="Validate constraints" />
</div>
<b:slider2 orientation="horizontal" value="#{sliderBean.age}" label="Enter your age (18-65)"
mode="edit" id="age"
badge-span="2"
badge-style="width: 2.7em;padding-right:5px;padding-left:5px"/>
<b:message for="age" />
<b:commandButton update="@form" value="Validate constraints" />
</h:form>
]]>
</script>
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/bootstrap/Slider2Attributes.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
<td>false</td>
<td>Setting this flag updates the widget on every AJAX request.</td>
</tr>
<tr>
<td>badge-span<br />badgeSpan (alternative writing)</td>
<td> 1 </td>
<td>The column span of the badge or input field (if it's shown).</td>
</tr>
<tr>
<td>badge-style<br />badgeStyle (alternative writing)</td>
<td>(none)</td>
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/jquery-ui/SliderAttributes.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
<td>false</td>
<td>Setting this flag updates the widget on every AJAX request.</td>
</tr>
<tr>
<td>badge-span<br />badgeSpan (alternative writing)</td>
<td> 1 </td>
<td>The column span of the badge or input field (if it's shown).</td>
</tr>
<tr>
<td>badge-style<br />badgeStyle (alternative writing)</td>
<td>(none)</td>
Expand Down

0 comments on commit d3c6149

Please sign in to comment.