Jump to content

unimLabel


Serg

Recommended Posts

Добрый день!

CucnoCSS:

 

.hoverpanel {
color:grey;
}

.hoverpanel:hover {
color:gray;
border-bottom: rgba(242,157,140,1) solid 3px;
}

.hoverpanel:active {
color:orange;
border-bottom: red solid 3px;
}

.hoverpanel:pressed {
color:red;
}


.hoverpanel:target {
  font-size: 18px;
  border: 2px solid red;
  border-radius: 100px;
  width: 100px;
  height: 100px;
}


UnimLabel1.JSInterface.JSConfig('overCls', ['hoverpanel']);

UnimLabel1.JSInterface.JSCode('MainmForm.UnimLabel1.setStyle("color", "gray");');

Не работает. В чем может быть ошибка?

Спасибо.

Link to comment
Share on other sites

2 hours ago, Serg said:

Не работает. В чем может быть ошибка?

Здравствуйте,

Попробуйте этот конфиг:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UnimLabel1.JSInterface.JSConfig('userCls', ['hoverpanel']);
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...