Rich Display CSS JavaScript 2

Alex (@alex)

33936

0

0

About This Space

A demo of how to build Rich Displays in the Visual Designer that integrate with external CSS and JavaScript file


Last updated on May 5, 2019

Public Permissions:   View   Open/Fork   Run   Comment  

Rich Display + CSS + JavaScript Template

This template demonstrates integrating CSS and JavaScript code with Rich Display File screens.

Where to place your files

All client-side files should be placed in a directory named 'public' within your workspace.

Including files in Rich Displays

To include client-side CSS and JavaScript files in your Rich Display screens, simply specify one or more of the following screen-level properties:

  • external css
  • external javascript

You can click the prompt button in the Properties Window to browse for the desired file in your workspace.

Screenshot

If you'd like to add more than one CSS or JavaScript file, right-click the property and select Add Another.

Once an external CSS file is specified for a Rich Display, any changes made to the CSS file are automatically live, meaning you don't have to reload the page to see the CSS reflected in the Visual Designer.

Using CSS Classes

CSS classes can be specified on any widget by modifying the "css class" property. To add more than one CSS class, right-click the property and select Add Another.

Screenshot

JavaScript Events

JavaScript code is initiated from events, such as onclick or onload. A variety of event properties are available at both the widget and the screen level.

Adjusting Canvas Size

To preview your application for various mobile device sizes, you can adjust the Visual Designer canvas size. Canvas size options can be found on the Design Tab of the Visual Designer.

Screenshot

You can select from an existing set of sizes or define your own by selecting the Edit Sizes option.

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Alex (@alex)

Filters:

Popular Recent

This workspace illustrates the basic setup of an HTML page that includes external JavaScript and CSS files

38224

0

0

Example of Indeterminate Checkbox

11300

0

0

39319

0

0

Low code employee maintenance

24658

0

0

22090

0

0

This app allows a team to decide where to go for lunch (or dinner) by using acceptance voting.

21511

0

0

This is the completed example for the Stateful To-Do List Application walkthrough (https://noderun.com/docs/walkthroughs/stateful_todo_list_app) and the starting point for the Drag and Drop walkthrough (coming soon). Please feel free to fork this workspace to use as a starting place for you own projects or for the walkthroughs.

23031

0

0

Leet Translator

44911

0

2

Displaying information in grids is fundamental to developing applications. This demo application displays a list of products in a grid.

39505

0

0

Displaying information in grids is fundamental to developing applications. This demo application displays a list of products in a grid.

38166

0

0

Displaying information in grids is fundamental to developing applications. This demo application displays a list of products in a grid.

37785

0

0

Displaying information in grids is fundamental to developing applications. This demo application displays a list of products in a grid.

36881

0

0