learningtech
learningtech

Reputation: 33705

How to set style for all elements with a specified class name in sencha

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

Answers (1)

rdougan
rdougan

Reputation: 7225

This should do it:

Ext.select('.card').setStyle('background-image', 'url(bg.jpg)');

Upvotes: 6

Related Questions