-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataTable samples rename, move, update.
- Loading branch information
Showing
4 changed files
with
56 additions
and
69 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
SampleMiSites/MS3/Examples/DC/DatatablesAdvanced_CFW1.mipage
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
Name;Based in;Joined;Title | ||
Gitte;DK;2005/04;Managing Director / CEO | ||
Morten;DK;2005/04;Evangelist / CXO | ||
Ad�m;CA;2015/05;Developer | ||
Andy;UK;1987/07;Operations Manager / COO | ||
Bj�rn;DK;2005/04;Developer | ||
Brian;USA;2011/03;APL Tools Group Manager | ||
Dan;CA;2006/01;Tester, teacher, writer | ||
Fiona;UK;2013/04;Documentation Manager | ||
Geoff;UK;1977/01;Radical | ||
Helene;DK;2005/04;Finance Manager (CFO) | ||
Jason;UK;2007/05;IT Manager | ||
Jay;UK;2010/04;Technical Director / CTO | ||
JohnD;UK;1991/09;Chief Architect | ||
JohnS;UK;1981/07;Founder & Old hand | ||
Karen;UK;1992/05;Customer Account Manager | ||
Nadine;DK;2014/05;Communication | ||
Nic;F;2006/08;Developer | ||
Nick;UK;2014/01;Developer | ||
Pete;GR;1977/09;Founder & Bouzuki-Player | ||
Richard;UK;2008/06;Development Manager | ||
Roger;CA;2011/01;Aesthetic Thinking | ||
Vibeke;UK;2006/02;PR & Marketing Guru | ||
Vince;UK;1996/06;Support | ||
Name,Based in,Month,Year | ||
Gitte,Denmark,April,2005 | ||
Morten,Denmark,April,2005 | ||
Ad�m,United Kingdom,May,2015 | ||
Andy,United Kingdom,July,1987 | ||
Bj�rn,Denmark,April,2005 | ||
Brian,USA,March,2011 | ||
Dan,Canada,January,2006 | ||
Fiona,United Kingdom,April,2013 | ||
Geoff,United Kingdom,January,1977 | ||
Helene,Denmark,April,2005 | ||
Jason,United Kingdom,May,2007 | ||
Jay,United Kingdom,April,2010 | ||
JohnD,United Kingdom,September,1991 | ||
JohnS,United Kingdom,July,1981 | ||
Karen,United Kingdom,May,1992 | ||
Nic,France,August,2006 | ||
Nick,United Kingdom,January,2014 | ||
Pete,Greece,September,1977 | ||
Richard,United Kingdom,June,2008 | ||
Roger,Canada,January,2011 | ||
Vibeke,United Kingdom,February,2006 | ||
Vince,United Kingdom,June,1996 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
:Class DataTableAdvanced : MiPageSample | ||
⍝ Control:: _JS.DataTable | ||
⍝ Description:: DataTable with options plus "ColumnFilterWidget" and "SearchHighlight" plug-ins | ||
|
||
:field private Datafile←'TeamDyalog.csv' | ||
|
||
∇ Compose;dyalog;dPath;dat;dt | ||
:Access Public | ||
|
||
Add MarkdownFollows | ||
⍝ In this example we are using two plug-ins to enhance our DataTable: | ||
⍝ | ||
⍝ - **SearchHighlight** highlights the searched-for phrase in each result (try typing *mar* into the search box) | ||
⍝ - **ColumnFilterWidgets** adds dropdown list-boxes for selection of filtering criteria. You can remove any item by clicking on it. | ||
⍝ - Note how the **dom** option is used to hide the page switching buttons -- only | ||
⍝ one page of data (limited to the default of 10 records) is shown | ||
|
||
dPath←_Request.Server.Config.AppRoot,'examples/data/' | ||
:If 0=⎕NC'#.LoadData' | ||
dyalog←2 ⎕NQ'.' 'GetEnvironment' 'dyalog' | ||
#.⎕CY dyalog,'/ws/loaddata' ⍝ must be copied to root because of absolute reference #.fileUtilities | ||
:EndIf | ||
|
||
dat←#.LoadTEXT dPath,Datafile ⍝ get Data from CSV | ||
dt←'#sample'Add _.DataTable dat'' 1 '' 0 0 ⍝ add table to the page with that data | ||
dt.Options.dom←'Wfrtip' ⍝ with "W"-Option for the CFW-Widget | ||
dt.Options.searchHighlight←_true ⍝ Brian: should't #.JSON.true be useable in such cases? It is not. Is there another tool for that? | ||
|
||
∇ | ||
|
||
:EndClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters