Let me raise this to our UI engineers as I tested out the example provided in the tool tip for 'Custom Rule' and that did not work. So unless they show me how to use it correctly I will be filing a bug report on this
To disable Mondays, for example, you would use the following code snippet. As Mondays are represented with 1.
{{ new Date(self.value + 'T00:00').getDay() === 1 ? 'Mondays are invalid' : '' }}
So to apply this for Wednesday you would do 3, Thursday 4, Friday 5 and chain them together with or causes ||
Unfortunately this will not grey out those days, as it will apply a validation level limitation.
To grey out all days before the current day, you would want to use {{ new Date().toDateString()}} for min date.
I am checking to see if there is some other workaround for having custom rules grey out days that would eval to true.
I believe that the custom rule can't apply until a day is clicked/selected and then the code runs. Whereas min or max date applies a CSS style to grey out and make days un-clickable when the component is first rendered as it can compare days to these specified day put into the GUI.