Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Look for all
Browse files Browse the repository at this point in the history
Look for all can now be set
  • Loading branch information
jmohler1970 committed Aug 29, 2015
1 parent 39e9a3f commit 9b7945f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bootstrap/selectManyCheckbox.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ case "start" :
param attributes.disabled = false;
param attributes.inline = false;
param attributes.look = "";
param attributes.name;
param attributes.processed = true;
param attributes.rendered = true;
Expand All @@ -37,6 +38,8 @@ case "end" :
for(variables.myRow = 1; variables.myRow <= thisTag.qryOption.recordcount; variables.myRow++) {
variables.mylook = thisTag.qryOption.look[variables.myRow] == "" ? attributes.look : thisTag.qryOption.look[variables.myRow];
if(thisTag.qryOption.id[variables.myRow] == "auto") QuerySetCell(thisTag.qryOption, "id", "auto_" & left(createUUID(), 10), variables.myRow);
Expand All @@ -46,7 +49,7 @@ case "end" :
if(thisTag.qryOption.look[variables.myRow] == "" && attributes.circle) variables.result &= '<div class="checkbox checkbox-circle';
else variables.result &= '<div class="checkbox';
if(thisTag.qryOption.look[variables.myRow] != "") variables.result &= ' #variables.preClass#-#lcase(thisTag.qryOption.look[variables.myRow])#';
if(variables.myLook != "") variables.result &= ' #variables.preClass#-#lcase(variables.myLook)#';
if(attributes.inline) variables.result &= ' #variables.preClass#-inline';
variables.result &= '"';
Expand Down
7 changes: 5 additions & 2 deletions bootstrap/selectOneRadio.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ case "start" :
param attributes.disabled = false;
param attributes.inline = false;
param attributes.look = "";
param attributes.name;
param attributes.processed = true;
param attributes.rendered = true;
Expand All @@ -37,16 +38,18 @@ case "end" :
for(variables.myRow = 1; variables.myRow <= thisTag.qryOption.recordcount; variables.myRow++) {
variables.mylook = thisTag.qryOption.look[variables.myRow] == "" ? attributes.look : thisTag.qryOption.look[variables.myRow];
if(thisTag.qryOption.id[variables.myRow] == "auto") QuerySetCell(thisTag.qryOption, "id", "auto_" & left(createUUID(), 10), variables.myRow);
variables.preClass = attributes.square ? "checkbox" : "radio";
if(thisTag.qryOption.look[variables.myRow] == "" && attributes.square) variables.result &= '<div class="checkbox checkbox';
if(variables.myLook == "" && attributes.square) variables.result &= '<div class="checkbox checkbox';
else variables.result &= '<div class="#variables.preClass#';
if(thisTag.qryOption.look[variables.myRow] != "") variables.result &= ' #variables.preClass#-#lcase(thisTag.qryOption.look[variables.myRow])#';
if(variables.myLook != "") variables.result &= ' #variables.preClass#-#lcase(variables.myLook)#';
if(attributes.inline) variables.result &= ' #variables.preClass#-inline';
variables.result &= '"';
Expand Down
18 changes: 17 additions & 1 deletion views/select.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,21 @@ disabled,display,group,id,look,value,selected,tooltip
</form>


<h3>Look set across all</h3>
<p>These are all set to info</p>

<b:selectOneRadio name="myRadio3" look="info">
<b:selectItem value="C" display="Cat" id="auto" selected="true" />
<b:selectItem value="D" display="Dog" id="auto" />
<b:selectItem value="B" display="Bird" id="auto" />
<b:selectItem value="F" display="Fish" id="auto" />
<b:selectItem value="R" display="Rat" id="auto" />
<b:selectItem value="H" display="Hamster" id="auto" />
</b:selectOneRadio>


<h3>Square Radio</h3>

<p>Now with square radio buttons. (Work in progress, doesn't quite work right)</p>

<b:selectOneRadio name="myRadio1" square="true" inline="true">
Expand All @@ -706,7 +721,8 @@ disabled,display,group,id,look,value,selected,tooltip



<h2>Yet more examples</h2>

<h3>Yet more examples</h3>
<b:table>
<thead>
<tr>
Expand Down

0 comments on commit 9b7945f

Please sign in to comment.