Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation

Link Decorator

Link decorator will wrap cell with link.

Recommended usage is to define model route first. Then it can be used in very short form:

@Decorator(Link, 'update')

For auto param-to-grid-field routing:

@Decorator(Link, 'target/route', 'id')

When grid field has different name then param:

@Decorator(Link, 'target/route', 'id' = 'fieldName')

When more params are required:

@Decorator(Link, 'target/route', 'id' = 'fieldName', 'param' => 'another')

Remember to import Link class to use class literals in annotations.