Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility addition #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules/
bower_components/
.vscode/
yarn.lock
32 changes: 26 additions & 6 deletions dist/vue-mover.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
-------------------
by Rick Strahl, West Wind Technologies

Version 0.3.2
February 9th, 2018
Version 0.3.3
January 10th, 2019

depends on:
-----------
Expand All @@ -92,6 +92,10 @@
:right-items="unselectedItems"
title-left="Available Items"
title-right="Selected Items"
move-all-right-label="Select All"
move-right-label="Select"
move-all-left-label="Unselect All"
move-left-label="Unselect"
moved-item-location="top"
:font-awesome="true"
targetId="MyMover"
Expand Down Expand Up @@ -144,6 +148,22 @@ var vue = Vue.component("mover", {
type: String,
default: 'Selected'
},
moveAllRightLabel: {
type: String,
default: 'Move All Right'
},
moveRightLabel: {
type: String,
default: 'Move Right'
},
moveAllLeftLabel: {
type: String,
default: 'Move All Left'
},
moveLeftLabel: {
type: String,
default: 'Move Left'
},
// Location where moved items are dropped: top, bottom
movedItemLocation: {
type: String,
Expand Down Expand Up @@ -188,19 +208,19 @@ var vue = Vue.component("mover", {
' </div>' + '\n' +
'' + '\n' +
' <div class="mover-controls" >' + '\n' +
' <button type="button" v-on:click="moveAllRight()">' + '\n' +
' <button type="button" v-on:click="moveAllRight()" :aria-label="moveAllRightLabel">' + '\n' +
' <i v-if="fontAwesome" class="fa fa-forward fa-1.5x" aria-hidden="true"></i>' + '\n' +
' <b v-if="!fontAwesome" aria-hidden="true">>></b>' + '\n' +
' </button>' + '\n' +
' <button type="button" v-on:click="moveRight()" style="margin-bottom: 30px;" >' + '\n' +
' <button type="button" v-on:click="moveRight()" :aria-label="moveRightLabel" style="margin-bottom: 30px;" >' + '\n' +
' <i v-if="fontAwesome" class="fa fa-caret-right fa-2x" aria-hidden="true"></i>' + '\n' +
' <b v-if="!fontAwesome" aria-hidden="true">></b>' + '\n' +
' </button>' + '\n' +
' <button type="button" v-on:click="moveLeft()">' + '\n' +
' <button type="button" v-on:click="moveLeft()" :aria-label="moveLeftLabel">' + '\n' +
' <i v-if="fontAwesome" class="fa fa-caret-left fa-2x" aria-hidden="true"></i>' + '\n' +
' <b v-if="!fontAwesome" aria-hidden="true"><</b>' + '\n' +
' </button>' + '\n' +
' <button type="button" v-on:click="moveAllLeft()">' + '\n' +
' <button type="button" v-on:click="moveAllLeft()" :aria-label="moveAllLeftLabel">' + '\n' +
' <i v-if="fontAwesome" class="fa fa-backward" aria-hidden="true"></i>' + '\n' +
' <b v-if="!fontAwesome" aria-hidden="true"><<</b>' + '\n' +
' </button>' + '\n' +
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-mover.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading