Skip to content

Commit a087195

Browse files
committed
update docs
1 parent 6fc60ec commit a087195

File tree

11 files changed

+24
-23
lines changed

11 files changed

+24
-23
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ You can find the sample layout file in ```src/layout/main.php```.
156156
* implement Materialize v1.1.0 (community fork https://materializecss.github.io/materialize/)
157157
* PHP 8 support
158158
* use NPM instead of Bower
159+
* use constants to configure [Icon](https://github.com/MacGyer/yii2-materializecss/blob/master/src/widgets/Icon.php)
159160
* **Breaking changes included**:
160161
* MaterializeFontAsset not loaded automatically
161162

src/lib/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function activeTextarea($model, $attribute, $options = [])
112112
* @param string $attribute the attribute name or expression.
113113
* @param array $options the tag options in terms of name-value pairs.
114114
*
115-
* @see http://materializecss.com/forms.html#character-counter
115+
* @see https://materializecss.github.io/materialize/text-inputs.html#character-counter
116116
*/
117117
private static function normalizeMaxLength($model, $attribute, &$options)
118118
{

src/lib/MaterializeWidgetTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ trait MaterializeWidgetTrait
3737
* @var array the options for the underlying Materialize JS plugin.
3838
* Please refer to the corresponding Materialize documentation web page.
3939
*
40-
* @see http://materializecss.com/
40+
* @see https://materializecss.github.io/materialize/
4141
*/
4242
public $clientOptions = [];
4343

4444
/**
4545
* @var array the event handlers for the underlying Materialize JS plugin.
4646
* Please refer to the corresponding Materialize documentation web page.
4747
*
48-
* @see http://materializecss.com/
48+
* @see https://materializecss.github.io/materialize/
4949
*/
5050
public $clientEvents = [];
5151

src/widgets/Modal.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Modal extends BaseWidget
122122
* - label: string, the label of the button. Defaults to '×'.
123123
*
124124
* The rest of the options will be rendered as the HTML attributes of the button tag.
125-
* Please refer to the [Modal plugin help](http://materializecss.com/modals.html)
125+
* Please refer to the [Modal plugin help](https://materializecss.github.io/materialize/modals.html)
126126
* for the supported HTML attributes.
127127
* @see [\yii\helpers\Html::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
128128
*/
@@ -155,7 +155,7 @@ class Modal extends BaseWidget
155155
* - label: string, the label of the button. Defaults to 'Show'.
156156
*
157157
* The rest of the options will be rendered as the HTML attributes of the button tag.
158-
* Please refer to the [Modal plugin help](http://materializecss.com/modals.html)
158+
* Please refer to the [Modal plugin help](https://materializecss.github.io/materialize/modals.html)
159159
* for the supported HTML attributes.
160160
* @see [\yii\helpers\Html::renderTagAttributes()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#renderTagAttributes()-detail) for details on how attributes are being rendered.
161161
*/

src/widgets/form/ActiveField.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ActiveField extends \yii\widgets\ActiveField
111111
*
112112
* Note: the `characterCounter()` is currently available for input types `text` and `password`, and for `textarea`.
113113
*
114-
* @see http://materializecss.com/forms.html#character-counter
114+
* @see https://materializecss.github.io/materialize/text-inputs.html#character-counter
115115
*/
116116
public $showCharacterCounter = false;
117117

@@ -475,7 +475,7 @@ public function numberInput($options = [])
475475
* the Materialize character counter JS plugin is initialized for this field.
476476
*
477477
* @return $this the field object itself.
478-
* @see http://materializecss.com/forms.html#character-counter
478+
* @see https://materializecss.github.io/materialize/text-inputs.html#input
479479
*/
480480
public function passwordInput($options = [])
481481
{
@@ -602,8 +602,8 @@ public function telInput($options = [])
602602
* - autocomplete: string|array, see [[initAutoComplete()]] for details
603603
*
604604
* @return $this the field object itself.
605-
* @see http://materializecss.com/forms.html#character-counter
606-
* @see http://materializecss.com/forms.html#autocomplete
605+
* @see https://materializecss.github.io/materialize/text-inputs.html#textarea
606+
* @see https://materializecss.github.io/materialize/autocomplete.html
607607
* @see https://www.w3.org/TR/html5/forms.html#attr-fe-autocomplete
608608
*/
609609
public function textarea($options = [])
@@ -633,8 +633,8 @@ public function textarea($options = [])
633633
* - autocomplete: string|array, see [[initAutoComplete()]] for details
634634
*
635635
* @return $this the field object itself.
636-
* @see http://materializecss.com/forms.html#character-counter
637-
* @see http://materializecss.com/forms.html#autocomplete
636+
* @see https://materializecss.github.io/materialize/text-inputs.html#textarea
637+
* @see https://materializecss.github.io/materialize/autocomplete.html
638638
* @see https://www.w3.org/TR/html5/forms.html#attr-fe-autocomplete
639639
*/
640640
public function textInput($options = [])

src/widgets/form/RangeInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RangeInput extends BaseInputWidget
5555

5656
/**
5757
* @var boolean whether to use noUiSlider.
58-
* @see http://materializecss.com/forms.html#range
58+
* @see https://materializecss.github.io/materialize/range.html
5959
*/
6060
public $useNoUiSlider = true;
6161

src/widgets/form/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Select extends BaseInputWidget
3737
* 2 => [
3838
* 'label' => 'Option 2',
3939
*
40-
* // The 'data-icon' and 'class' attributes are Materialize specific. Refer to http://materializecss.com/forms.html#select
40+
* // The 'data-icon' and 'class' attributes are Materialize specific. Refer to https://materializecss.github.io/materialize/select.html
4141
* // for information about adding icons to select options.
4242
* 'options' => [
4343
* 'data-icon' => 'http://lorempixel.com/40/40/people/1',

src/widgets/media/Carousel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @package widgets
4141
* @subpackage media
4242
*
43-
* @see http://materializecss.com/carousel.html
43+
* @see https://materializecss.github.io/materialize/carousel.html
4444
*/
4545
class Carousel extends BaseWidget
4646
{
@@ -68,7 +68,7 @@ class Carousel extends BaseWidget
6868
* - content: the content of the fixed item. Please note: this can be HTML and will not be encoded.
6969
*
7070
* If you do not want the fixed item to be rendered, set this option to `false`.
71-
* @see http://materializecss.com/carousel.html#special
71+
* @see https://materializecss.github.io/materialize/carousel.html#special
7272
*/
7373
public $fixedItemOptions = false;
7474

@@ -115,7 +115,7 @@ class Carousel extends BaseWidget
115115

116116
/**
117117
* @var boolean whether to start with first slide at the end.
118-
* @see http://materializecss.com/carousel.html#options
118+
* @see https://materializecss.github.io/materialize/carousel.html#options
119119
*/
120120
public $noWrap = false;
121121

src/widgets/navigation/Nav.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* ```
4343
*
4444
* @author Christoph Erdmann <yii2-materializecss@pluspunkt-coding.de>
45-
* @see http://materializecss.com/navbar.html
45+
* @see https://materializecss.github.io/materialize/navbar.html
4646
* @package widgets
4747
* @subpackage navigation
4848
*/
@@ -106,7 +106,7 @@ class Nav extends BaseWidget
106106
* Defaults to `null` which means `<i class="material-icons right">arrow_drop_down</i>` will be used.
107107
* To disable the caret, set this property to be an empty string.
108108
*
109-
* @see http://materializecss.com/navbar.html#navbar-dropdown
109+
* @see https://materializecss.github.io/materialize/navbar.html#navbar-dropdown
110110
*/
111111
public $dropDownCaret;
112112

@@ -216,7 +216,7 @@ protected function renderItem($item)
216216
* @throws \Exception
217217
* @since 2.0.1
218218
*
219-
* @see http://materializecss.com/navbar.html#navbar-dropdown
219+
* @see https://materializecss.github.io/materialize/navbar.html#navbar-dropdown
220220
*/
221221
protected function renderDropdown($items, $parentItem, $targetId)
222222
{

src/widgets/navigation/NavBar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* NavBar::end();
3838
* ```
3939
* @author Christoph Erdmann <yii2-materializecss@pluspunkt-coding.de>
40-
* @see http://materializecss.com/navbar.html
40+
* @see https://materializecss.github.io/materialize/navbar.html
4141
* @package widgets
4242
* @subpackage navigation
4343
*/
@@ -54,7 +54,7 @@ class NavBar extends BaseWidget
5454

5555
/**
5656
* @var string|boolean the text of the brand or false if it's not used. Note that this is not HTML-encoded.
57-
* @see http://materializecss.com/navbar.html
57+
* @see https://materializecss.github.io/materialize/navbar.html
5858
*/
5959
public $brandLabel = false;
6060

0 commit comments

Comments
 (0)