Picture of aaron quinn
Re: plugin: adapt-component-tidbits
by aaron quinn - Monday, 16 January 2017, 8:30 PM
 

it sure is [thumbs up]

thanks, helen

Picture of Suresh Kumar
Re: plugin: adapt-component-tidbits
by Suresh Kumar - Monday, 17 April 2017, 4:24 AM
 

Hi Aaron,

I found the Tidbits are vey useful component for one of my requirements. If there are five links, then the users have to visit all the five links for the component to be completed. Is there a way, we can make a few links optional. So that they do not need be visited and still meet the completion criteria? 

Thanks!

Suresh

 

 

 

Picture of aaron quinn
Re: plugin: adapt-component-tidbits
by aaron quinn - Monday, 17 April 2017, 6:08 PM
 

hi suresh- it's possible but you will need to modify the component's code. the checkDone function is where the component checks to see if all tidbits are visited. comment out the getAllBitsVisited condition and write a condition to specify which tidbit(s) to check. here's an example that completes the component if only one tidbit has been visited:

Picture of aaron quinn
Re: plugin: adapt-component-tidbits
by aaron quinn - Tuesday, 18 April 2017, 9:08 PM
 

hello again suresh,

forget the answer i provided above. although it will work, it's not reusable.

i reworked the component and updated the repository at GitHub. in version 0.0.2.0, only tidbits that are required must be visited in order to complete the component.