Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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:masterDimox/jQueryFormStyler:masterfrom
yunusga:feature/input-type-passwordCopy head branch name to clipboard
Open

input[type="password"]#132
yunusga wants to merge 3 commits intoDimox:masterDimox/jQueryFormStyler:masterfrom
yunusga:feature/input-type-passwordCopy head branch name to clipboard

Conversation

@yunusga
Copy link

@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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.