Trying to align containers in repeater to the left side of the page
Here is the current code for the page:
import wixWindow from 'wix-window';
import wixData from 'wix-data';
$w.onReady(function () {
//TODO: write your page related code here...
});
function filterRepeater( $item, itemData, index )
{
var language = wixWindow.multilingual.currentLanguage;
if ( ( $w('#dropdown1').value == 'all' || itemData.subjects.indexOf( $w('#dropdown1').value ) != -1 ) && ( $w('#dropdown2').value == 'all' || itemData.ageRange.indexOf( $w('#dropdown2').value ) ) != -1 && itemData.language.indexOf( language ) != -1 ){
$item('#container2').expand();
//if ($w('#text25').text!=language){$item('#container1').collapse();}
}
else {
$item('#container2').collapse();
}
}
export function button9_click(event) {
$w('#listrepeater').forEachItem( ($item,itemData,index) => filterRepeater($item, itemData, index) )
$w('#listrepeater').expand()
}
If you need further details or clarification, I would recommend contacting Wix Customer Care, as they know best.
Hello Henry,
is your issue, a code related issue?
Go to the option ("Layouts"), there you will find, what you are searching for.