Skip to content

Commit

Permalink
IH class
Browse files Browse the repository at this point in the history
  • Loading branch information
loveorigami committed Aug 30, 2016
1 parent f342d8c commit 1e5157c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ echo IH::icon('home'); // <i class="icofont icofont-home"></i>
echo IH::i('home'); // <i class="icofont icofont-home"></i>

// icon with additional attributes
echo FA::icon(
echo IH::icon(
'arrow-left',
['class' => 'big', 'data-role' => 'arrow']
); // <i class="big icofont icofont-arrow-left" data-role="arrow"></i>

// icon in button
echo Html::submitButton(
Yii::t('app', '{icon} Save', ['icon' => FA::icon('check')])
Yii::t('app', '{icon} Save', ['icon' => IH::icon('check')])
); // <button type="submit"><i class="icofont icofont-check"></i> Save</button>

// icon with additional methods
echo FA::icon('arrow-right')->pullLeft(); // <i class="icofont icofont-arrow-right pull-left"></i>
echo FA::icon('arrow-right')->pullRight(); // <i class="icofont icofont-arrow-right pull-right"></i>
echo IH::icon('arrow-right')->pullLeft(); // <i class="icofont icofont-arrow-right pull-left"></i>
echo IH::icon('arrow-right')->pullRight(); // <i class="icofont icofont-arrow-right pull-right"></i>

// autocomplete icons name in IDE
echo IH::icon(FA::_MAGIC);
echo IH::icon(FA::_ARROW_RIGHT);
echo IH::icon(IH::_MAGIC);
echo IH::icon(IH::_ARROW_RIGHT);
```

## License
Expand Down

0 comments on commit 1e5157c

Please sign in to comment.