Reputation: 33705
I'm using Sencha for the first time. Previously, I've been using jquery. What is the Sencha equivalent for the following jquery command?
$('.card').css('background-image', 'url(bg.jpg)');
In other words, I want to find all elements with the class name card
, then I want to add a background-image:url(bg.jpg)
to them.
Upvotes: 1
Views: 4191
Reputation: 7225
This should do it:
Ext.select('.card').setStyle('background-image', 'url(bg.jpg)');
Upvotes: 6