Skip to content

Commit

Permalink
feat: name attribute and variable renamed to key
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Aug 4, 2023
1 parent 9c36081 commit 2cd04d0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
48 changes: 24 additions & 24 deletions demo/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
href="../index.css"
array="files"
object="637bc8fe91249e639db315d9"
name="src"
key="src"
type="text/css" />
<link rel="manifest" href="/manifest.webmanifest" />
</head>
Expand Down Expand Up @@ -139,7 +139,7 @@
pass_id="render"
pass-array=""
pass-object=""
pass-name=""
pass-key=""
pass_to="code-editor"></div>
</a>
</li>
Expand All @@ -156,7 +156,7 @@
pass_id="render"
pass-array=""
pass-object=""
pass-name=""
pass-key=""
pass_to="builder"></div>
</a>
</li>
Expand Down Expand Up @@ -194,7 +194,7 @@
pass_to="render"
array="website-pages"
object=""
pass-name="src"
pass-key="src"
modal-width="900px"
modal-color="#229954">
<i
Expand All @@ -210,9 +210,9 @@
class="overflow:auto display:flex flex-direction:column width:100% height:calc(100vh_-_160px) bottom:10px margin-right:5px">
<div
array="modules"
filter-sort-name="main-menu-position"
filter-sort-key="main-menu-position"
filter-sort-direction="asc"
filter-name="main-menu-position"
filter-key="main-menu-position"
filter-value="0"
filter-value-type="number"
filter-operator="$ne"
Expand All @@ -226,7 +226,7 @@
type="hidden"
array="files"
object="{{object.main-menu-primary}}"
name="path"
key="path"
input-selector="#a{{object._id}}"
input-key="primary-url" />
<a
Expand All @@ -240,15 +240,15 @@
class="display:inline-block width:50px text-align:center"
object="{{object._id}}"
array="modules"
name="icon"
key="icon"
value="icon"></span>
<span
array="modules"
object="{{object._id}}"
name="name"></span>
key="name"></span>
<div
pass-array="module_activities"
pass-filter-name="module_id"
pass-filter-key="module_id"
pass-filter-value="{{object._id}}"
pass_to="datatable"></div>
<div
Expand All @@ -258,12 +258,12 @@
<div
pass-array="files"
pass-object="{{object.main-menu-secondary}}"
pass-name="src"
pass-key="src"
pass_to="form"></div>
<div
pass-array="files"
pass-object="{{object.main-menu-primary}}"
pass-name="src"
pass-key="src"
pass_to="render"></div>
<div
pass-value="{{object._id}}"
Expand All @@ -276,7 +276,7 @@
type="hidden"
array="files"
object="{{object.main-menu-secondary}}"
name="path"
key="path"
input-selector="#a{{object._id}}"
input-key="secondary-url" />
<a
Expand All @@ -295,7 +295,7 @@
<div
pass-array="files"
pass-object="{{object.main-menu-secondary}}"
pass-name="src"
pass-key="src"
pass_to="render"></div>
<div
pass-object="{{object._id}}"
Expand Down Expand Up @@ -328,7 +328,7 @@
<div
pass-array="files"
pass-object="60ddfdc014b5ab0c2dd2fe18"
pass-name="src"
pass-key="src"
pass_to="render"></div>
</a>
<a
Expand All @@ -345,7 +345,7 @@
<div
pass-array="files"
pass-object="60ddfdbf14b5ab0c2dd2fe08"
pass-name="src"
pass-key="src"
pass_to="render"></div>
</a>
<a
Expand All @@ -362,7 +362,7 @@
<div
pass-array="files"
pass-object="60ddfdc014b5ab0c2dd2fe0b"
pass-name="src"
pass-key="src"
pass_to="render"></div>
</a>
<a
Expand All @@ -379,7 +379,7 @@
<div
pass-array="files"
pass-object="60ddfdc014b5ab0c2dd2fe15"
pass-name="src"
pass-key="src"
pass_to="render"></div>
</a>
<a
Expand All @@ -402,7 +402,7 @@
<main class="padding:10px" content_id="content">
<div
class="display:grid grid-auto-rows:50px gap:10px grid-template-columns:repeat(auto-fill,minmax(50px,1fr))"
dnd-group-name="dashboard"
dnd-group-key="dashboard"
array="files"
filter-limit="20"
render-selector="[template]"
Expand All @@ -415,20 +415,20 @@
resizable>
<!-- dashboard template-->
<div class="flex-grow:1 padding-right:20px">
<h2 name="name">Visits</h2>
<p name="description">Total visits today</p>
<h2 key="name">Visits</h2>
<p key="description">Total visits today</p>
<div class="display:flex align-items:center">
<h2>
$<span
array=""
document
filter-name="total"
filter-key="total"
chart-operator="sum"
>4000</span
>
</h2>
<div
filter-name="status"
filter-key="status"
filter-value="completed"></div>
<!--<i class="fas fa-chart-line color:green font-size:16px padding:0px_15px"></i>-->
<span
Expand Down Expand Up @@ -472,7 +472,7 @@ <h2>
pass_id="form"
pass-array=""
pass-object=""
pass-name=""
pass-key=""
pass_to="render"></div>
</a>
</button>
Expand Down
12 changes: 6 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
sizes="32x32"
href="https://cocreate.app/images/favicon.ico" />
<meta
name="description"
key="description"
content="A light weight resize handler make any element resizable by adding data attributes or usinng init object. Great for Customized text box or text area." />
<meta
name="keywords"
key="keywords"
content="helper classes, utility classes, css framework, css library, inline style classes" />
<meta name="robots" content="index,follow" />
<meta
Expand All @@ -26,7 +26,7 @@
href="/docs/index.css"
array="files"
object="60888216117c640e7596303f"
name="src"
key="src"
type="text/css"
save="true" />
<link rel="manifest" href="/manifest.webmanifest" />
Expand All @@ -41,7 +41,7 @@
scroll-down="10"
array="files"
object="60395ef42b3ac232657040fd"
name="src"></nav>
key="src"></nav>
<sidenav
id="menuL"
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
Expand All @@ -52,7 +52,7 @@
<menu
array="files"
object="603717b07de7fb350ae9fec8"
name="src"></menu>
key="src"></menu>
<div resize="right"></div>
</sidenav>
<main
Expand Down Expand Up @@ -278,7 +278,7 @@ <h2 class="padding:5px_0px">Demo</h2>
lang="html"
array="demos"
object=""
name="demo"
key="demo"
save="false"
id="demo"
input-selector=".demopreview"
Expand Down

0 comments on commit 2cd04d0

Please sign in to comment.