Alert

misc

Alert user from something

Example

Just a title to inform about something

HTML code
<DIV class="alert">
    <DIV class="columns">
        <DIV class="column alert__body">
            <H4>Just a title to inform about something</H4>
        </DIV>
    </DIV>
</DIV>
Type molecule
Group misc
Elements title, description, icon
Todo
Menu?, button?
More examples

Icon and title

Alert with no description

Everything OK

Blinking alert box

Make alert -box blinking using blink -style

PHP

Wrapper to use element through PHP

Extends eUiElement
Render html
Create arguments title, description, icon, color
Code example

Basic usage

var $Alert = $this->get('ui', 'alert', Array(
  'icon'        => 'warning',
  'title'       => 'Title',
  'description' => 'Description',
  'color'       => 'red'
));

All parameters

var $Alert = $this->get('ui', 'alert', Array(
  'icon'        => 'warning',
  'title'       => 'Title',
  'description' => 'Description',
  'color'       => 'red',
  'size'        => 'jumbo',
  'tooltip'     => 'Tooltip text',
  'link'        => 'link/route',
  'onclick'     => 'runMe()'
));

Javascript

Wrapper to use element through Javascript

Code example

Basic use

var Alert = cms.get('ui','alert',{
  icon:        'warning',
  title:       'Title',
  description: 'Description'
});

Size and color

var Alert = cms.get('ui','alert',{
  title:       'Title',
  description: 'Description',
  icon:        'warning',
  color:       'green',
  size:        'large'
});

Status

Predefines icon and color

var $Blank = cms.get('ui', 'alert', {
  status:      'error', // error, success
  title:       'Error title',
  description: 'Additional description text'
});

Styles

Elements Css style

jumbo

Jumbo

Description text

large

Large

Description text

normal

Normal

Description text

small

Small

Description text

mini

Mini

Description text

blink
plain

Plain

Description text

square

Square

Description text

azure

Azure

Description text

blue

Blue

Description text

violet

Violet

Description text

purple

Purple

Description text

pink

Pink

Description text

red

Red

Description text

brown

Brown

Description text

orange

Orange

Description text

yellow

Yellow

Description text

green

Green

Description text

darkgreen

Darkgreen

Description text

white

White

Description text

lightgray

Lightgray

Description text

gray

Gray

Description text

darkgray

Darkgray

Description text

black

Black

Description text

placeholder

Placeholder

Description text

success

Success

Description text

warning

Warning

Description text

danger

Danger

Description text

error

Error

Description text

info

Info

Description text

muted

Muted

Description text

selected

Selected

Description text

save

Save

Description text

delete

Delete

Description text

load

Load

Description text

cancel

Cancel

Description text