of course, you might want to just pass that data c...
# announcements
s
of course, you might want to just pass that data class into your Portal class instead of creating it inside the Portal class
f
Thx for the feedback, You say to send it as an argument to my class?
it does not convince me
n
well, the idea is dependency injection
but in this particular example I'm not really sure if it's applicable or not.
I'm not really sure what InputChooseFolder gives you at all, in your example
f
@Nir, it's not applicable in this case. I don't need use implementations or subclass of InputChooseFolder.
n
I don't actually see why you need InputChooseFolder at all though
f
It is Simple form with multiples inputs: label + input + btn(select folder) and I created a function that returns InputChooseFolder for avoid boilerplate code*.* Sample:
Copy code
row {
    inputRoot = inputChooseFolder("Root Path:", "inputRoot")
}
row {
    inputDest = inputChooseFolder("Dest Path:", "inputDest")
}
n
Okay, if that's the case I'd probably just make InputChooseFolder a private nested class of Portal