ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\UI\examples\Item\Shy Namespace Reference

Functions

 base ()
 

description: > Example for rendering a shy item. More...

 
 with_close ()
 

description: > Example for rendering a shy item with a close function. More...

 
 with_description ()
 

description: > Example for rendering a shy item with a description. More...

 
 with_lead_icon ()
 

description: > Example for rendering a shy item with an lead icon. More...

 
 with_long_description ()
 

description: > Example for rendering a shy item with a long description. More...

 
 with_properties ()
 

description: > Example for rendering a shy item with properties. More...

 

Function Documentation

◆ base()

ILIAS\UI\examples\Item\Shy\base ( )


description: > Example for rendering a shy item.

expected output: >

ILIAS shows a box highlighted white and including the text "Test shy Item".

Definition at line 32 of file base.php.

References $DIC.

33 {
34  global $DIC;
35 
36  return $DIC->ui()->renderer()->render(
37  $DIC->ui()->factory()->item()->shy('Test shy Item')
38  );
39 }
global $DIC
Definition: shib_login.php:26

◆ with_close()

ILIAS\UI\examples\Item\Shy\with_close ( )


description: > Example for rendering a shy item with a close function.

expected output: > ILIAS renders a base shy item. Additionally a "X" for closing the item is displayed on the right side. If you

click onto the "X" nothing will happen.

Definition at line 33 of file with_close.php.

References $DIC.

34 {
35  global $DIC;
36 
37  return $DIC->ui()->renderer()->render(
38  $DIC->ui()->factory()->item()->shy('Test shy Item')->withClose(
39  $DIC->ui()->factory()->button()->close()
40  )
41  );
42 }
global $DIC
Definition: shib_login.php:26

◆ with_description()

ILIAS\UI\examples\Item\Shy\with_description ( )


description: > Example for rendering a shy item with a description.

expected output: > ILIAS shows a box highlighted white and including the text "Test shy Item". Additionally a short description is displayed

below the text.

Definition at line 33 of file with_description.php.

References $DIC.

34 {
35  global $DIC;
36 
37  return $DIC->ui()->renderer()->render(
38  $DIC->ui()->factory()->item()->shy('Test shy Item')->withDescription('This is a test shy.')
39  );
40 }
global $DIC
Definition: shib_login.php:26

◆ with_lead_icon()

ILIAS\UI\examples\Item\Shy\with_lead_icon ( )


description: > Example for rendering a shy item with an lead icon.

expected output: > ILIAS shows a box highlighted white and including the text "Test shy Item". Additionally a small icon is displayed

to the left of the text.

Definition at line 35 of file with_lead_icon.php.

References $DIC.

36 {
37  global $DIC;
38 
39  return $DIC->ui()->renderer()->render(
40  $DIC->ui()->factory()->item()->shy('Test shy Item')->withLeadIcon(
41  $DIC->ui()->factory()->symbol()->icon()->standard(Standard::GRP, 'conversation')
42  )
43  );
44 }
global $DIC
Definition: shib_login.php:26

◆ with_long_description()

ILIAS\UI\examples\Item\Shy\with_long_description ( )


description: > Example for rendering a shy item with a long description.

expected output: > ILIAS shows a box highlighted white and including the text "Test shy Item". Additionally a multi-lined description

is displayed below the text.

Definition at line 33 of file with_long_description.php.

References $DIC.

34 {
35  global $DIC;
36 
37  return $DIC->ui()->renderer()->render(
38  $DIC->ui()->factory()->item()->shy('Test shy Item')->withDescription(
39  'This is a test shy of the root user in the current time. This is a little bit longer than
40  the usual to test its visual presentation when the content exceed a minor amount of chars to see if this
41  is still presented properly. This may affect its presentation inside a mobile or restricted view therefore
42  the presentation of a long text is necessary to test within this example to show its responsivity above all
43  views and to show the using developer, who is accessing this example for exact those information if the
44  component can be used for his target purpose.'
45  )
46  );
47 }
global $DIC
Definition: shib_login.php:26

◆ with_properties()

ILIAS\UI\examples\Item\Shy\with_properties ( )


description: > Example for rendering a shy item with properties.

expected output: > ILIAS shows a box highlighted white and including the text "Test shy Item". Additionally a fine dashed line is displayed

below the text. Right below the line you can see the information "Property: Value".

Definition at line 33 of file with_properties.php.

References $DIC.

34 {
35  global $DIC;
36 
37  return $DIC->ui()->renderer()->render(
38  $DIC->ui()->factory()->item()->shy('Test shy Item')->withProperties(['Property' => 'Value'])
39  );
40 }
global $DIC
Definition: shib_login.php:26