You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

Delete Button

A Delete Button is an Action Button configured to delete a database object when clicked. The button must be configured with the action delete and the ID of the object that should be deleted when the button is clicked.

Configuration

The following fields can be used to configure a delete button.

– | –
Element ID | Must be set to the ID of the object that should be deleted
Example: ${current.id}
Action | The button action, must be delete:<type> for the delete action
Example: delete:Project
Reload | Whether to reload the page upon successful deletion
Confirm | Whether to ask the user for confirmation before executing the action
Return URI | The return URI base if reload above is enabled

fig

Search results for "Delete Button"

Inheritance Tree

The Inheritance Tree shows the hierarchical relationship between all existing types - built-in and user-defined. It can be loaded by clicking on the Inheritance Tree tab. The width of the tree can be altered by dragging the tab element to the left or right.

The search box above the tree can be used to search for type names. When hovering over a type in the tree, the pencil symbol opens the type details popup. The delete button allows deleting the type. (Builtin types are restored upon schema compilation - only customizations are removed)

The tree is automatically reloaded to reflect changes in the type hierarchy (see. Type details popup)

Canvas

Type names of custom types can be changed by clicking on the text of the type node. When hovering over the type node the context icons are made visible. The Edit button (Pencil icon) opens the details dialog for the type and the Delete button (Delete icon) allows deleting the type after a confirmation.

Type Details Dialog

When hovering over the text label of relationship, the context icons are made visible. The Edit button (Pencil icon) opens the detail popup for the relationship and the Delete button (Delete icon) allows deleting the relationship after a confirmation.

Users and Groups

The Users and Groups tab has two subsections: The left section lists all system users that exist in the database. Users can be created by clicking on the "Add User" button on top of the list and deleted by clicking on the delete button which appears when you hover over the user element.

A user’s attributes like name, eMail or password can be edited via the Edit Properties dialog. Here a user can be given admin permissions by activating the isAdmin flag.

In the section on the right, user groups can be created and managed. Groups can contain users and other groups which can be added and removed via drag-and-drop. This allows the creation of a group hierarchy and thus a very flexible and versatile security system.

Pages Tree View

When you hover over an element in the page tree, buttons for the most common actions become visible, i.e. the Edit Properties button (Edit Properties icon), the Delete button (Delete icon) and the Access Control button (Key icon).

Local Widgets

When you click the Add Widget button (Add Widget icon), a new local Widget will be created, given a default name, and added to the “Uncategorized” collection. You can then hover over the Widget element in the list and click the Edit button (Pencil icon) to open the Edit Widget dialog. The Edit Properties button (Edit Properties icon), Delete button (Delete icon) and Access Control button (Key icon) work just like everywhere else in the Structr User Interface.