Our blazing fast Grid component built with pure JavaScript


Post by henrique »

Is it possible to the Align config, from all classes, to be the same type of AlignSpec of the widget documentation?


Post by marcio »

Hey henrique,

Thanks for reaching out.

Where do you see that the align config is not the AlignSpec type?

By checking the Grid TS definition, I found that mostly all of the classes have the align definition of align: AlignSpec | string, so, AlignSpec is present there.

Best regards,
Márcio



Post by marcio »

The Column's align config is regarding text-align, not positioning of the element.

The Scale's align config is regarding the positioning of the ticks, which usually doesn't need the specificity of the AlignSpec.

Perhaps Tool's align config could be changed, but I'll check with the team if that's the case and the possible impact/needed updates.

Best regards,
Márcio


Post by Animal »

Those all have completely different meanings. Which are fully documented and typed.


Post by henrique »

Thanks for the reply!


Post Reply