Have questions? Stuck? Please check our FAQ for some common questions and answers.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

DialogService

DialogService is an Angular Factory in the Layer module implemented by dialog.js. It provides an API to create (and show) a dialog panel with title, arbitrary content, and action buttons.

Here is the dialog in action in the Application View:

Function Descriptions

openDialog

Creates the dialog panel if necessary, then shows it on the screen. This function returns an API that allows the dialog box to be configured (more information below).

Example UsageArgumentsReturn Value
ds.openDialog(id, opts);id - a unique DOM identifier
opts - options for the dialog (see below) 
an API to configure the dialog

 


closeDialog

Closes the dialog panel. This function is idempotent.

createDiv

Creates a detached <div> element, returning a D3 selection. Optionally, a CSS class may be specified to be applied to the element.

 
  • No labels