Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Standard
Description
- Purpose
- A standard link uses text as the label of the link.
- Composition
- The standard link uses the default link color as text color and no background. Hovering a standard link underlines the text label.
Rules
- Usage
- Standard links MUST be used if there is no good reason to use another instance.
- Links to ILIAS screens that contain the general ILIAS navigation MUST NOT be opened in a new viewport.
Example 1: Base
Example 2: With content and referenced language
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Link\Standard; use ILIAS\Data\Factory as DataFactory; function with_content_and_referenced_language() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $data_factaory = new DataFactory(); $link = $f->link()->standard("Abrir ILIAS", "http://www.ilias.de") ->withLanguageOfReferencedContent($data_factaory->languageTag("de")) ->withContentLanguage($data_factaory->languageTag("es")); return $renderer->render($link); }
Example 3: With relationships
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Link\Standard; use ILIAS\UI\Component\Link\Relationship; function with_relationships() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $link = $f->link()->standard("Goto ILIAS", "http://www.ilias.de") ->withAdditionalRelationshipToReferencedResource(Relationship::EXTERNAL) ->withAdditionalRelationshipToReferencedResource(Relationship::BOOKMARK); return $renderer->render($link); }
Example 4: With tooltip
Goto ILIAS
tooltip: ilias
tooltip: learning management system
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Link\Standard; function with_tooltip() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $link = $f->link()->standard("Goto ILIAS", "http://www.ilias.de") ->withHelpTopics( ...$f->helpTopics("ilias", "learning management system") ); return $renderer->render($link); }
Relations
- Parents
- UIComponent
- Link