Skip to content

Views

Views are the pages within your EmberBlocks app. Each view contains components arranged on a canvas that display data and enable user interactions.

A View is a single page in your application. Views contain:

  • Components - UI elements like lists, text, buttons, and images
  • Layout - How components are arranged on the page
  • Navigation - How users move between views

To create a new view:

  1. Open your app in the Layout tab
  2. Click the + button in the Views sidebar
  3. Enter the view details:
FieldRequiredDescription
NameYesDisplay name shown in the sidebar
IconNoIcon displayed next to the view name
DescriptionNoBrief description of the view’s purpose

EmberBlocks supports different view types for common patterns:

  • Start with an empty canvas
  • Full control over layout and components
  • Best for custom interfaces
  • Pre-configured for data entry
  • Optimized for creating or editing records
  • Includes validation support
  • Designed for displaying a single record
  • Uses the Details component for field display
  • Often linked from list views

The canvas is where you build your view’s layout:

  • Drag components from the palette to the canvas
  • Components stack vertically
  • Side-by-side placement allowed when total width is 100% or less
  • Grid-based snapping (12-column grid)

Valid drop positions include:

  • Above the first component
  • Between any two components
  • Below the last component

Visual indicators show valid drop zones as you drag.

  • Click a component to select it
  • Selection shows resize handles
  • Settings panel opens on the right
  • Use corner handles for proportional resize
  • Use edge handles for width or height only
  • Hold Shift to maintain aspect ratio
  • Minimum and maximum sizes are enforced

The sidebar on the left manages your views:

  • Shows all views with icons and names
  • Drag to reorder views
  • Active view is highlighted
  • Click to navigate between views

Organize views into collapsible folders:

  1. Click the folder icon to create a new folder
  2. Drag views into folders to organize
  3. Click folder header to expand/collapse
  4. Drag folders to reorder

Views can be marked as hidden:

  • Hidden views appear in a separate “Hidden” section
  • Not shown in the published app’s navigation
  • Useful for admin-only or linked views

Click the gear icon on a view to access settings:

SettingDescription
NameThe display name in navigation
SlugURL-friendly identifier (auto-generated)
IconIcon shown in the sidebar
DescriptionOptional description
Is HomeSet as the default landing page
Is HiddenHide from navigation in published app

Each view has a URL slug:

  • Auto-generated from the view name
  • Used in the URL: /app-slug/view-slug
  • Can be customized for cleaner URLs

Designate one view as the home page:

  • First view users see when opening your app
  • Only one view can be home at a time
  • Mark as home in view settings

The palette provides components to add to your canvas:

ComponentDescription
ListDisplay data in tables, lists, kanban boards, or cards
TextStatic or dynamic text with markdown support
ButtonTrigger actions like CRUD operations
ImageDisplay images with various fit modes
DetailsShow field values for a single record
ChartVisualize data with various chart types
FilterStandalone filtering UI
MapGeographic visualization with markers
CalendarEvent calendar with multiple views
CommentsThreaded discussions on records

See the Components section for detailed documentation.

When a component is selected, the Settings Panel appears:

TabContents
GeneralBasic settings like title, data source
StyleVisual customization options
AdvancedVisibility conditions, advanced features
  • Changes apply immediately on the canvas
  • Test your configuration as you work
  • Reset to defaults if needed

Test your view before publishing:

  1. Click the Preview button in the header
  2. Interact with components as a user would
  3. Toggle between device sizes (mobile, tablet, desktop)
  4. Exit preview to return to editing

Use the Navigate action to move between views:

  1. Add a Button component
  2. Set its action to Navigate
  3. Select the target view
  4. Optionally pass parameters

Pass data between views using URL parameters:

/inventory/item-detail?id={{$row.id}}

Access parameters in formulas with $params.paramName.

  • Group related views into folders
  • Use clear, descriptive names
  • Set logical default (home) view
  • Start with the most important content
  • Use consistent component sizing
  • Consider mobile responsiveness
  • Limit components per view for best performance
  • Use pagination on large data lists
  • Apply filters to reduce data loading
  • Provide clear navigation paths
  • Use consistent styling across views
  • Add helpful descriptions and labels

A typical dashboard might include:

  • Text component for welcome message
  • Chart components for KPIs
  • List component showing recent items
  • Button to navigate to detailed views

For creating records:

  • Text component with instructions
  • Form fields for data input
  • Save and Cancel buttons
  • Validation feedback

For viewing a single record:

  • Details component showing all fields
  • Related data in nested lists
  • Edit and Delete action buttons
  • Comments component for discussion

Continue learning about EmberBlocks features: