Disable CSS stylesheet for a specific action in Symfony

后端 未结 3 1679
深忆病人
深忆病人 2021-01-05 09:32

Is there any way of disabling a stylesheet in view.yml for a specific action in Symfony?

For example I\'ve got this in my view.yml:

default:
  style         


        
3条回答
  •  感动是毒
    2021-01-05 10:00

    You can remove or add stylesheets to a modules view.yml by doing the following:

    displaySuccess:
      stylesheet: [-default]
    

    would remove default.css from the display action. Simply putting

    displaySuccess:
      stylesheet: [-*]
    

    would remove all stylesheets.

提交回复
热议问题