Custom Files

Custom Files enables you to add your own files to the project. Basically, a custom file is a blank page with the layout of the project for you to add your own content so it will have a consistent look and feel like other generated files.

 

How to Use

To create a Custom File, simply right click the database pane or click Edit in the main menu, then select Add File, the following form will show:

The properties are as follows:

File Name

Alphanumerical file name without extension.

Notes

  1. Do not include path.
  2. File name is case-sensitive. Make sure you enter the file name in correct lettercase.
  3. The file name cannot be same as any existing table or view name.
Caption The caption of the page. This is similar to table caption for a table and will be shown up in the menu and in the title of the page.

After entering above properties, click OK button to save. The Custom File will show up in the database pane under the Custom Files node:

To edit the Custom File properties, right click the Custom File in the database pane and select Edit File.

To delete a Custom File, right click the Custom File in the database pane and select Delete File.

To enter content for the file, select the Custom File in the database pane , then select the Code tab (which contains Client Scripts and Custom Templates) in the right pane.

Scroll down the treeview or collapse the Client Scripts node, select the Custom Templates -> Table-Specific -> Custom File -> Content node, then you can enter or paste your content in the editor:



Then just save your project, generate, build and run the app as usual.

 

Example - Add an Ionic Card in the page to show some news.

<div class="card">
  <div class="item item-text-wrap">
    DB AppMaker 2.0 is released.
  </div>
</div>

The result:


 ©2017 e.World Technology Ltd. All rights reserved.