Metro 4 Table — data-body attribute

Hello my friends! In this article I want to talk about the yet undocumented feature of the table component - attribute data-body. With this attribute you can define data for table as ARRAY. Without writting <tr><td>...</td></tr> code. First - You must define array with table data. Important! Data for table must be defined before moment... » read more

Play sound on button click in Metro 4

Hello, my friends! In 4.3.7 I'm added new component AudioButton and method Metro.playSound. With method Metro.playSound, you can play any sounds on your request. var btn = document.querySelector(...); car sound = 'https://website.com/sound.mp3'; btn.addEventListener('click', e => { Metro.playSound(sound, (src) => { console.log('sound '+src+' done') }) }) or, You can create button (or other element) with role... » read more