Link elements

A LinkViewElement writes an <a> tag to the output.

Element and builder

The ViewElement implementation for a a element is a LinkViewElement and has a corresponding LinkViewElementBuilder. A LinkViewElement can also be created via the BootstrapUiBuilders.bootstrap.builders.link factory method.

Examples

import static com.foreach.across.modules.bootstrapui.ui.factories.BootstrapViewElements.bootstrap;

bootstrap.builders.link().build();

Providing text

import static com.foreach.across.modules.bootstrapui.ui.factories.BootstrapViewElements.bootstrap;

bootstrap.builders.link()
                   .url( "https://google.com" )
                   .text( "Google" )
                   .build()

Child elements

import static com.foreach.across.modules.bootstrapui.ui.factories.BootstrapViewElements.bootstrap;

bootstrap.builders.link()
                   .url( "https://google.com" )
                   .add( IconSet.iconSet( FONT_AWESOME_SOLID_ICON_SET ).icon( "download" ) )
                   .build()