Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > IStyleable
Antarmuka IStyleable
Antarmuka untuk objek tempat gaya dapat ditambahkan.
Tanda Tangan:
export interface IStyleable
Metode
Metode |
Deskripsi |
addStyle(style) |
Menambahkan gaya pada toolbox. Biasanya digunakan untuk mengubah kursor. |
removeStyle(style) |
Menghapus gaya dari toolbox. Biasanya digunakan untuk mengubah kursor. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-20 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-20 UTC."],[[["The `IStyleable` interface defines objects that can have styles applied to them."],["It includes methods for adding (`addStyle`) and removing (`removeStyle`) styles, primarily used for cursor changes on the toolbox."]]],["The `IStyleable` interface allows objects to have styles added or removed. The `addStyle(style)` method applies a specified style, commonly used for cursor changes. Conversely, the `removeStyle(style)` method eliminates a given style from the object, also typically affecting the cursor. This interface provides functionality for dynamically managing the visual appearance of elements.\n"]]