API Reference pain v0.1.0

Modules

Pain keeps the contexts that define your domain and business logic.

Used for executing DB release tasks when run in production without Mix installed.

The entrypoint for defining your web interface, such as controllers, components, channels, and so on.

Properties

  • id :string, required: true - Both the DOM ID and the ID to uniquely identify a LiveView. An :id is automatically generated when rendering root LiveViews but it is a required option when rendering a child LiveView.

Properties

  • accion :string
  • shape :string
  • clicked :boolean, default: false
  • disabled :boolean, default: false
  • classes :css_class, default: {}

Slots

  • default

Events

  • click

Properties

  • number :integer
  • chosen :list

Events

  • choose

A sample component generated by mix surface.init.

Example using the rounded property and slots.

Properties

  • id :string, required: true - Both the DOM ID and the ID to uniquely identify a LiveView. An :id is automatically generated when rendering root LiveViews but it is a required option when rendering a child LiveView.

Properties

  • number :integer
  • choices :map
  • name :string
  • class :css_class
  • enabled :map, default: %{}
  • labels :map, default: %{}

Slots

  • default
  • summary

Events

  • accion

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Slots

  • default, required: true

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

Properties

  • services :map

Provides core UI components.

A module providing Internationalization with a gettext-based API.