Skip to content

Commit

Permalink
Merge pull request #1419 from MitrahSoft/Added_a_examples_28/02/2024
Browse files Browse the repository at this point in the history
Added a examples to tags for lucee docs
  • Loading branch information
zspitzer authored Mar 14, 2024
2 parents 390e62a + 445d5ef commit 249346b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
18 changes: 17 additions & 1 deletion docs/03.reference/02.tags/col/_examples.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
*There are currently no examples for this tag.*
```lucee+trycf
<cfset data = queryNew("id,name,age", "integer,varchar,integer", [
{id:1,name:"Item1",age:20},
{id:2,name:"Item2",age:24},
{id:3,name:"Item3",age:44},
{id:4,name:"Item4",age:42}
])>
<cfquery name="qryData" dbtype="query">
SELECT *
FROM data
</cfquery>
<cftable query="qryData" startRow="1" colSpacing="3" border=true HTMLTable colHeaders>
<cfcol header="<b>Id</b>" align="Left" width="15" text="#id#">
<cfcol header="<b>Name</b>" align="Left" width="15" text="#name#">
<cfcol header="<b>Age</b>" align="Left" width="15" text="#age#">
</cftable>
```
18 changes: 17 additions & 1 deletion docs/03.reference/02.tags/table/_examples.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
*There are currently no examples for this tag.*
```lucee+trycf
<cfset data = queryNew("id,name,age", "integer,varchar,integer", [
{id:1,name:"Item1",age:20},
{id:2,name:"Item2",age:24},
{id:3,name:"Item3",age:44},
{id:4,name:"Item4",age:42}
])>
<cfquery name="qryData" dbtype="query">
SELECT *
FROM data
</cfquery>
<cftable query="qryData" startRow="1" colSpacing="3" border=true HTMLTable colHeaders>
<cfcol header="<b>Id</b>" align="Left" width="15" text="#id#">
<cfcol header="<b>Name</b>" align="Left" width="15" text="#name#">
<cfcol header="<b>Age</b>" align="Left" width="15" text="#age#">
</cftable>
```

0 comments on commit 249346b

Please sign in to comment.