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

Update star-rating.js #179

Closed
wants to merge 1 commit into from
Closed

Update star-rating.js #179

wants to merge 1 commit into from

Conversation

Bhoft
Copy link
Contributor

@Bhoft Bhoft commented Jan 10, 2018

Scope

This pull request includes a

  • Bug fix
  • New feature

Changes

The following changes were made

  • a new Parameter addCaptionAsTitle was added
    Which is set to true in displayOnly Mode but only when it isn't manually set.
    So it is still possible to disable it.

When addCaptionAsTitle = true the caption "content" is set as the title html attribute to the stars containing div.
So you would get the correct value on hover

I just get the caption content by using the text() function.
But of course an additional function which only returns the caption text like fetchCaptionValue would also be possible and maybe even better.

  • The parameter showCaption isn't disabled in displayOnly = true automatically any more.
    So the caption could be rendered in displayOnly mode.
    If the caption shouldn't be shown it has to be disabled manually.

Related Issues

#177

add a new Parameter addCaptionAsTitle was added, which is set in displayOnly Mode to true but only when it isn't manually set.
So it is still possible to disable it.  

When addCaptionAsTitle  = true the caption "content" is set as the title html attribute to the stars containing div.
So you would get the correct value on hover.

The parameter showCaption isn't disabled in displayOnly  = true automatically any more. 
So the caption could be rendered in displayOnly  mode.
If the caption shouldn't be shown it has to be disabled manually.

I just get the caption content by using the text() function.
But of course an additional function which only returns the caption text like fetchCaptionValue would also be possible and maybe even better.
@kartik-v kartik-v closed this in 75d176b Sep 15, 2018
kartik-v added a commit that referenced this pull request Sep 15, 2018
kartik-v added a commit that referenced this pull request Sep 15, 2018
kartik-v added a commit that referenced this pull request Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant