Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !21116

Base text direction support for Bootstrap v4 JS widgets

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/ashensis/BTD into v4-dev Nov 10, 2016
  • Overview 0
  • Commits 6
  • Pipelines 0
  • Changes 6

Created by: ashensis

The BTD support is provided for Tooltip and Popover widgets since only these ones create their HTML markup dynamically. (Referenced issue #20378 (closed)) Bootstrap widgets would provide BTD basing on 'textdir' option been passed to widget constructor. Alternatively BTD may be specified decoratively as 'data-textdir' attribute of corresponding html element.

Allowed values of 'textDir' attribute are: "ltr" (left-to-right), "rtl" (right-to- left) and "contextual" (meaning that either 'ltr' or 'rtl' value is used depending on the first strong(Arabic/Hebrew or English) character of string been displayed.

This PR complements the #19555 (closed) which provides the GUI mirroring for Bootstrap widgets. As a whole, current feature alongside with #19555 (closed) constitute the full fledged Bidi support for Bootstrap widgets.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ashensis/BTD