-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Tile view for Getting Started which represents categories
- Change DataGrid to Tile view in details of each category (reference #56)
- Loading branch information
1 parent
1f99b9a
commit 996c2c9
Showing
18 changed files
with
731 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
44 changes: 44 additions & 0 deletions
44
...rtal_Royale/src/generated/Super.Human.Portal_Royale/views/renderers/CardTileRenderer.mxml
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,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<itemRenderers:TileViewItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" | ||
xmlns:j="library://ns.apache.org/royale/jewel" | ||
xmlns:js="library://ns.apache.org/royale/basic" xmlns:html="library://ns.apache.org/royale/html" | ||
xmlns:itemRenderers="classes.com.devexpress.js.tileView.itemRenderers.*"> | ||
<itemRenderers:beads> | ||
<js:ItemRendererDataBinding /> | ||
</itemRenderers:beads> | ||
<fx:Script> | ||
<![CDATA[ | ||
import model.vo.TileViewVO; | ||
override public function set data(value:Object):void | ||
{ | ||
if (super.data != value) | ||
{ | ||
super.data = value; | ||
dispatchEvent(new Event("dataChange")); | ||
} | ||
} | ||
[Bindable("dataChange")] | ||
public function get dataVO():TileViewVO | ||
{ | ||
return data as TileViewVO; | ||
} | ||
]]> | ||
</fx:Script> | ||
<j:Card percentHeight="100" percentWidth="100" maxHeight="300" className="cardTile"> | ||
<j:CardTitle text="{dataVO.title}" className="cardTileTitle" multiline="true" percentWidth="100"/> | ||
<j:CardPrimaryContent itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter" gap="2"> | ||
<j:IconButton visible="{dataVO.imageIcon != null}" className="cardTileButtonIcon"> | ||
<j:icon> | ||
<js:MaterialIcon text="{dataVO.imageIcon}" className="cardTileIcon"/> | ||
</j:icon> | ||
</j:IconButton> | ||
<j:Label multiline="true" text="{dataVO.description}"/> | ||
</j:CardPrimaryContent> | ||
<j:CardActions visible="{dataVO.link != null}"> | ||
<j:Button text="See More"/> | ||
</j:CardActions> | ||
</j:Card> | ||
</itemRenderers:TileViewItemRenderer> |
44 changes: 44 additions & 0 deletions
44
...le/src/generated/Super.Human.Portal_Royale/views/renderers/DocumentationTileRenderer.mxml
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,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<itemRenderers:TileViewItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" | ||
xmlns:j="library://ns.apache.org/royale/jewel" | ||
xmlns:js="library://ns.apache.org/royale/basic" xmlns:html="library://ns.apache.org/royale/html" | ||
xmlns:itemRenderers="classes.com.devexpress.js.tileView.itemRenderers.*"> | ||
<itemRenderers:beads> | ||
<js:ItemRendererDataBinding /> | ||
</itemRenderers:beads> | ||
<fx:Script> | ||
<![CDATA[ | ||
import Super.Human.Portal_Royale.views.modules.DocumentationForm.DocumentationFormVO.DocumentationFormVO; | ||
override public function set data(value:Object):void | ||
{ | ||
if (super.data != value) | ||
{ | ||
super.data = value; | ||
dispatchEvent(new Event("dataChange")); | ||
} | ||
} | ||
[Bindable("dataChange")] | ||
public function get dataVO():DocumentationFormVO | ||
{ | ||
return data as DocumentationFormVO; | ||
} | ||
]]> | ||
</fx:Script> | ||
<j:Card percentHeight="100" percentWidth="100" maxHeight="300" className="cardTile"> | ||
<j:CardPrimaryContent itemsHorizontalAlign="itemsCenter" itemsVerticalAlign="itemsCenter" gap="2"> | ||
<j:IconButton visible="{dataVO.image == null}" className="cardTileButtonIcon"> | ||
<j:icon> | ||
<js:MaterialIcon text="{dataVO.emptyImage}" className="cardTileIcon"/> | ||
</j:icon> | ||
</j:IconButton> | ||
<j:Image src="{dataVO.image}" visible="{dataVO.image != null}"/> | ||
<j:Label multiline="true" text="{dataVO.DocumentationName}"/> | ||
</j:CardPrimaryContent> | ||
<j:CardActions visible="{dataVO.showUnid}"> | ||
<j:Label text="{'DocumentationUNID: ' + dataVO.DocumentationUNID}"/> | ||
</j:CardActions> | ||
</j:Card> | ||
</itemRenderers:TileViewItemRenderer> |
Oops, something went wrong.