14
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

hamlで動的にclass名/idを設定する

Last updated at Posted at 2018-08-01

#hamlで動的にclass名を設定する

これでclassが設定できる

{class: status}

class名やidに対して動的に番号を振りたい場合は下記のようにできる。

.modal-content{id: "delete-modal#{ticket.id}"}

#参考記事
https://code-examples.net/ja/q/21d66f

14
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?