Lock reveal component | revealComponentLock | componentId - String | window.wyng['_WYNG_ID_'].revealComponentLock('reveal_123') | |
Unlock reveal component | revealComponentUnlock | componentId - String | window.wyng['_WYNG_ID_'].revealComponentLock('reveal_123') | |
Select specific outcome | revealComponentSelectOutcome | componentId - String parameters - Object | window.wyng['_WYNG_ID_'].revealComponentSelectOutcome('reveal_123', { outcomeName: 'Win a car' }) | If the Outcome selection mode is "random", outcomeName is not required, and ignored if present. If the Outcome selection mode is "custom", outcomeName is required. |
Spin wheel and show outcome | revealComponentSpinWheelAndStop | componentId - String parameters - Object | window.wyng['_WYNG_ID_'].revealComponentSpinWheelAndStop('reveal_123', { speed: 3, duration: 5000 }) | |
Get selected outcome info | revealComponentGetOutcome | componentId - String | window.wyng['_WYNG_ID_'].revealComponentGetOutcome('reveal_123') | |
Reset outcome and Reveal to initial state | revealComponentResetOutcome | componentId - String | window.wyng['_WYNG_ID_'].revealComponentResetOutcome('reveal_123') | |