Skip to content

Commit

Permalink
Added docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Oct 8, 2018
1 parent d34c086 commit e5b9af8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/block-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,19 @@ align: true,
// Pick which alignment options to display.
align: [ 'left', 'right', 'full' ],
```
When supports align is used the block attributes definition is extended to include an align attribute with a string type.
By default, no alignment is assigned to the block.
The block can apply a default alignment by specifying its own align attribute with a default e.g.:
```
attributes: {
...
align: {
type: 'string',
default: 'right'
},
...
}
```

- `alignWide` (default `true`): This property allows to enable [wide alignment](../docs/extensibility/theme-support.md#wide-alignment) for your theme. To disable this behavior for a single block, set this flag to `false`.

Expand Down

0 comments on commit e5b9af8

Please sign in to comment.