diff options
author | Aylur <[email protected]> | 2024-06-09 22:25:40 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-06-09 22:25:40 +0200 |
commit | 41cb376a02d12f85eb1e4893425af15614c2e187 (patch) | |
tree | e5d684784c4a3782adbbaad7e6597d3dafd8bb6f /lua/astal/binding.lua | |
parent | 15285a17bf447c5185dfbb92d9a4bd2670a4e44e (diff) |
support deeply nested layout structures
js, jsx, lua now allows deeply nested layouts that contains Bindings
Variable.derive will be automatically constructed where needed
and Bindings in layouts will be bound automatically
it breaks compatibility with ags even more, but jsx should be preferred
imo anyway
Diffstat (limited to 'lua/astal/binding.lua')
-rw-r--r-- | lua/astal/binding.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/astal/binding.lua b/lua/astal/binding.lua index 264986b..c9929ea 100644 --- a/lua/astal/binding.lua +++ b/lua/astal/binding.lua @@ -2,12 +2,12 @@ local lgi = require("lgi") local GObject = lgi.require("GObject", "2.0") ---@class Binding ----@field emitter object +---@field emitter table|Variable ---@field property? string ---@field transformFn function local Binding = {} ----@param emitter object +---@param emitter table ---@param property? string ---@return Binding function Binding.new(emitter, property) |