Skip to content
This repository was archived by the owner on Dec 27, 2021. It is now read-only.

input[type="password"]#132

Open
yunusga wants to merge 3 commits intoDimox:masterfrom
yunusga:feature/input-type-password
Open

input[type="password"]#132
yunusga wants to merge 3 commits intoDimox:masterfrom
yunusga:feature/input-type-password

Conversation

@yunusga
Copy link
Copy Markdown

@yunusga yunusga commented Apr 18, 2017

input[type="password"]

2017-04-18_13-02-51

Опции:

  • passwordShow - текст переключателя "Показать" (доступна для локализации)
  • passwordHide - текст переключателя "Скрыть" (доступна для локализации)
  • passwordSwitchHtml - html код для переключателя состояний

Пример

Использование опции passwordSwitchHtml с подключенным Font Awesome

$('input, select').styler({
    passwordSwitchHtml: '<i class="fa fa-eye" aria-hidden="true"></i><i class="fa fa-eye-slash" aria-hidden="true"></i>'
});
.jq-password .fa {
    display: hidden;
}

.jq-password .fa-eye {
    display: block;
}

.jq-password_seen .fa-eye {
    display: none;
}

.jq-password_seen .fa-eye-slash {
    display: block;
}

@ange007
Copy link
Copy Markdown

ange007 commented Apr 26, 2017

Благодарю, перенёс в форк: JQueryFormStyler-Modern.
Правда с небольшими изменениями.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants